
Programming practices - C programming
Authored by Mohamed Ibrahim
Computers, Instructional Technology, Other
University
Used 136+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=25;
while(a <= 27)
{
printf("%d ", a);
a++;
}
return 0;
}
25 25 25
25 26 27
27 27 27
Compiler error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}
while(a <= 30);
return 0;
}
32
33
30
No Output
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main()
{
int k, j;
for(k=1, j=10; k <= 5; k++)
{
printf("%d ", (k+j));
}
return 0;
}
compiler error
10 10 10 10 10
10 11 12 13 14 15
None of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main()
{
int k;
for(k=1; k <= 5; k++);
{
printf("%d ", k);
}
return 0;
}
1 2 3 4 5
1 2 3 4
6
5
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
3 2 3
2 2 3
3 2 2
2 3 3
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("n%d %d %d", x, y, z);
}
24 39 63
39 24 63
24 39 45
39 24 45
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?