KURUKSHETRA

Quiz
•
Computers
•
1st Grade
•
Hard
bitsbuster bitsbuster
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
25 questions
КИгр №16 Финал

Quiz
•
1st - 3rd Grade
25 questions
ASK -Algoritma T1

Quiz
•
1st - 3rd Grade
25 questions
jquery

Quiz
•
1st Grade
30 questions
SOAL ULHAR PEMROGRAMAN DASAR

Quiz
•
1st - 3rd Grade
25 questions
Input and output devices

Quiz
•
KG - 3rd Grade
30 questions
Python L1 Programming Challenge

Quiz
•
1st - 12th Grade
29 questions
Arduino_Testing

Quiz
•
1st Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade