
KURUKSHETRA
Authored by bitsbuster bitsbuster
Computers
1st Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Q1)What will be the output of the following code?
#include<stdio.h>
int main()
{
int n=9;
(n==9?printf("Correct\n");:printf("Wrong\n"););
return 0;
}
Correct
Wrong
Blank
Syntax error
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What will be the output of the following code snippet?
int x = 10;
if (x > 5) {
if (x < 15)
printf("A");
else if (x > 20)
printf("B");
} else {
printf("C");
}
A
B
A B
No output
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
3) Which of the following is an exit controlled loop?
For loop
Do while loop
Do loop
While loop
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which of the following are header files is used to determine the type contained in wide character data in C?
stdio.h
wctype.h
time.h
ctype.h
none of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What will be the output of the following code snippet?
int i, j;
for (i = 1; i <= 3; i++) {
for (j = 3; j >= i; j--) {
printf("%d ", i + j);
}
printf("\n");
}
4 5 6
3 4
2
4 3 2
5 4
6
4 3 2
4 5
6
4 3 2
5 6
7
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Q1)What will be the output of the following code snippet?
int i, j;
for (i = 0, j = 10; i < j; i++, j--) {
printf("%d %d ", i, j);
}
0 10 1 9 2 8 3 7 6
0 10 1 9 2 8 3 7 4
0 10 1 9 2 8 3 7 4 6
0 10 1 9 2 3 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following are correct file opening modes in C?
rl
wr
rc
rb
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?