Which keyword is used to terminate a switch statement case?

C-Volution (Easy 2)

Quiz
•
Information Technology (IT)
•
University
•
Medium
Sujal Bhagat
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
stop
end
break
exit
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the default case in a switch statement?
To define a loop.
To execute code when no other case matches.
To print output.
To read input.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of printf("%d", 20 / 3);?
6.66
6
7
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for bitwise AND in C?
&&
&
||
|
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the == operator do?
Assigns a value.
Checks for equality.
Checks for inequality.
Performs logical NOT.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid character constant in C?
123
"A"
'A'
3.14
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? C int x = 10; if (x >= 10) { printf("Equal or greater");}
Equal or greater
No output
Error
10
Create a free account and access millions of resources
Similar Resources on Quizizz
35 questions
2nd Year Data Structures Quiz Qn

Quiz
•
University
30 questions
Form 4 - CSEC Information Technology Quiz

Quiz
•
10th Grade - University
25 questions
Seatwork #4

Quiz
•
12th Grade - University
35 questions
Тест2 ТОМИ

Quiz
•
University
30 questions
Loops, enums,arrays,conditional statements, variables

Quiz
•
University
28 questions
Programming Fundamentals Quiz

Quiz
•
University
30 questions
Tin học đại cương - Chương 3: Lập trình C

Quiz
•
University
30 questions
C-Volution (Easy 4)

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade