علم البيانات مستوى ثاني | جامعة صنعاء – Telegram
علم البيانات مستوى ثاني | جامعة صنعاء
1.25K subscribers
369 photos
13 videos
820 files
399 links
"قناة علمية متخصصة في مجال علم البيانات. نقدم لك محتوى علمي موثوق به، وشروحات مفصلة، وأمثلة عملية تغطي أحدث التطورات في مجال علم البيانات . هدفنا هو تمكينك من بناء قاعدة علمية قوية ومهارات عملية تساهم في نجاحك الأكاديمي والمهني."
النقاشات: @Computer_DS1
Download Telegram
Q5) In a do-while loop, the condition is evaluated after executing the loop's body.
Anonymous Quiz
74%
True
26%
False
Q6)How is a single-line comment written in C++?
Anonymous Quiz
8%
#
7%
/**/
85%
//
1%
--
Q7) Which header file is required for cin and cout?
Anonymous Quiz
2%
<stdlib.h>
3%
<conio.h>
0%
<stdio.h>
95%
<iostream>
Q9) What is the output of the following loop?
int i = 0;
while (i < 5) { cout << i <<" ";}
Anonymous Quiz
13%
0 1 2 3 4 5
8%
1 2 3 4 5
38%
0 1 2 3 4
40%
Infinite loop.
👍2
Q9) What will be the output of the following code?
#include <iostream>
using namespace std; int main(){ /* this is comment cout <<"hello world"; return 0;}
Anonymous Quiz
24%
hello world
0%
hello
76%
error
Q12) 12.How many types of comments are there in C++?
Anonymous Quiz
5%
1
78%
2
7%
3
9%
4
Q13) What is the value of p in the following C++ code?
#include<iostream>
using namespace std; int main() { int p; bool a=true; bool b=false; int x=10; int y=5; p= ((x+y*2)+(a+b)) ; cout<<p;}
Anonymous Quiz
12%
31
17%
0
68%
21
4%
16
1
Q14) What is the output of the following loop?
int n;
hi : for(n=5;n>0;n--) {cout<<n; if(n==3) goto hi;}
Anonymous Quiz
6%
5431
17%
5421
24%
54321
52%
infinite loop
👍1
Q15) What will be the output
x=7+3*6/1-1 ?
Anonymous Quiz
5%
15
81%
24
8%
28
6%
29
Q16) What will be the output
int z=1,a=3;
for(int i=1;i<=3;i++) z*=a; cout<<z;
Anonymous Quiz
34%
3
55%
27
10%
9
1%
21
Q17) What will be the output
#include <iostream>
using namespace std ; int main () { int n; hi: if(n==3) goto hi;}
Anonymous Quiz
5%
Hi
24%
hi
22%
infinite loop
49%
nothing
💯1
Q18) What will be the output ?
int a = 5, b=10;
if (a > b && b>=0) cout << a; else if (b> a && a>=0) cout << b;
Anonymous Quiz
9%
5
77%
10
15%
0
Q19) What will be the output?

int z=1,a=3,m=2; for(int i=1;i<=3) z*=a/3*m; cout<<z;
Anonymous Quiz
19%
8
72%
error
9%
28
Q20) The goto statement is often used in old programming for control flow management.
Anonymous Quiz
71%
True
29%
False
👍1
22) The for loop in C++ allows you to execute a block of code once based on a condition.
Anonymous Quiz
55%
True
45%
False
Q11) What is the output of the following loop?
int n;
for (n = 5; n> 0; n--) { cout <<n; if (n==3) continue;}
Anonymous Quiz
7%
5431
54%
5421
34%
54321
5%
53
👍1😐1