void main()
{
int a=5,b=10,temp;
temp=a,a=b,t=temp;
printf("%d,%d",a,b);
}
21-22_QUIZ1_KCA102
Quiz
•
Computers
•
1st - 3rd Grade
•
Hard
Gaurav Bhatia
Used 16+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void main()
{
int a=5,b=10,temp;
temp=a,a=b,t=temp;
printf("%d,%d",a,b);
}
10,5
5,10
5,5
10,10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void main(){
int a=2,b=2,x,y;
x= 4 * (++a * 2 + 3);
y= 4 * (b++ * 2 + 3);
printf("%d,%d,%d,%d",a,b,x,y);
}
3,3,36,28
3,3,36,20
3,3,28,28
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following statement ?
int a=10; printf("%d &i",a,10);
error
10 10
10
none of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following statements ?
int a = 4, b = 7,c; c = a = = b; printf("%i",c);
error
0
1
garbage
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following statement ?
printf( 2 + "goodbye"+1);
goodbye
error
dbye
none of these
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of the following code
int a=5,b=6,max;
a<b?max=b:max=a;
printf("%d",max);
none of these
6
5
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
float a=0.7;
if(a==0.7)
printf("true");
else
printf("false");
false
true
error
none of these
10 questions
java-control structures-vlits
Quiz
•
1st Grade
11 questions
JAVA QUIZ
Quiz
•
1st - 12th Grade
15 questions
array
Quiz
•
1st - 5th Grade
15 questions
พื้นฐานการเขียนโปรแกรมภาษา C
Quiz
•
2nd Grade
15 questions
หลักการเขียนโปรแกรม
Quiz
•
1st - 5th Grade
14 questions
Python Quiz 7
Quiz
•
KG - 6th Grade
9 questions
Algoritmos
Quiz
•
2nd Grade
12 questions
Previous set Capgemini
Quiz
•
1st - 3rd Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
14 questions
IREAD-3 Practice Test
Quiz
•
3rd Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Perimeter of Polygons!
Quiz
•
3rd Grade
10 questions
2nd Grade math review
Quiz
•
2nd Grade
20 questions
Math Review
Quiz
•
3rd Grade
18 questions
Traits
Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...