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
Similar Resources on Wayground
20 questions
ALGORITMA DAN DASAR PEMROGRAMAN

Quiz
•
University
20 questions
Sjmit-Q1-[Workshop-MAR-25]

Quiz
•
12th Grade - University
20 questions
Kidney Function and Nephron Quiz

Quiz
•
University
25 questions
Matematika Kelas III

Quiz
•
4th Grade - University
29 questions
Thân Não: Nhìn Trước

Quiz
•
University
20 questions
EMT QUIZ

Quiz
•
University
20 questions
Quiz Algebra 3

Quiz
•
University
22 questions
kiểm tra chương 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University