
Quiz on Decision Control Structures in C Programming
Authored by <3 M.
Information Technology (IT)
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to implement the decision control instruction in C?
switch
if
while
for
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else statement in an if-else construct?
To execute a statement if the condition is true
To create a loop
To execute a statement if the condition is false
To terminate the program
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the general form of an if statement for multiple statements?
if(condition) statement;
if(condition) { block of statement; }
if { condition } statement;
if(condition) then statement;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the break statement do in a switch-case structure?
Exits the switch block
Starts a new case
Ends the program
Continues to the next case
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be tested using a switch statement?
String expressions
Float expressions
Integer expressions
Character expressions
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default case in a switch statement used for?
To handle all cases
To execute the first case
To handle the case when none match
To terminate the program
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an if-else ladder?
A series of nested if statements
A single if statement
A switch statement
A loop structure
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?
Similar Resources on Wayground
10 questions
Tin 9 Bài 8. SUMIF
Quiz
•
9th Grade - University
10 questions
Quiz on Basics of C
Quiz
•
University
13 questions
Nano quiz: Bottleneck of Motivation 2 and Receptivity Threshold
Quiz
•
University
17 questions
Service-Oriented Architecture Quiz
Quiz
•
University
11 questions
QUIZ 3: SECURITY TOOLS and VULNERABILITY ANALYSIS
Quiz
•
University
19 questions
Windows File Sharing Quiz
Quiz
•
University
15 questions
Q1. Human Computer Interaction
Quiz
•
University
12 questions
Recap W02 - W04 Information and Communication Technology
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University