CODE 4 KITSW ROUND - 2
Quiz
•
Others
•
University
•
Hard
Siddartha vaitla
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int x = 10, y = 20;
x > y ? printf("X") : printf("Y");
A) 10
B) 20
C) Compilation error
D) Y
2.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which statement is used to exit a loop prematurely in C?
A) exit
B) break
C) continue
D) return
3.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
How many types of decision-making statements are there in C?
A) 2
B) 3
C) 4
D) 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int x = 5;
if (x > 5)
printf("A");
else if (x < 5)
printf("B");
else
printf("C");
A) A
B) B
C) C
D) No output
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int main() {
int x = 5;
while (x > 0) {
printf("%d ", x--);}
return 0; }
54321
12345
55555
4321
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
int main() {
int i;
for (i = 0; i < 5; i++) {
if (i == 2)
continue;
printf("%d ", i);
}
return 0;
}
0123
01234
0134
1234
7.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which statement is used to terminate the program in C?
A) exit
B) break
C) terminate
D) return
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Physiology
Quiz
•
University
20 questions
3RD TERM 2024/2025 EXAMINATION: ENGLISH S
Quiz
•
4th Grade - University
20 questions
Spanish Verbs Quiz
Quiz
•
University
20 questions
20 Soal PAI terkait materi akhlak terpuji dan akhlak tercela.
Quiz
•
University
20 questions
Quiz on Human Resource Management in Hotels
Quiz
•
University
23 questions
All about Fnaf 1
Quiz
•
University
20 questions
Quiz Praktikum Dasar Ilmu Tanah
Quiz
•
University
20 questions
Quiz kelompok 2
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Others
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
