Unit 5 : Decision Control in C

Quiz
•
Computers
•
University
•
Easy
Abhishek Pandey
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 2;
if (x > 3)
printf("Hello");
else
printf("World");
Hello
error
World
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else block?
To execute when the if condition is true
To terminate the program
To execute when the if condition is false
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 0;
if (x)
printf("True");
else
printf("False");
True
error
None
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many else if blocks can you have in an if-else if ladder?
Only one
Two
Any number
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a break statement in switch?
It breaks the program
It terminates the current block and exits the switch
It skips to the next case
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a break statement is missing in a switch case?
The program will not compile
Only the default case executes
An infinite loop is created
Fall-through to the next case occurs
Similar Resources on Wayground
10 questions
IT Quiz Round 3

Quiz
•
University
10 questions
Cuestionario Kotlin Básico

Quiz
•
University
10 questions
Problem Solving - Week 6 RECAP

Quiz
•
University
10 questions
Nested Statement

Quiz
•
University
10 questions
Python-1st

Quiz
•
University
10 questions
C++ Quiz

Quiz
•
University
10 questions
CIS1101-programming practice2

Quiz
•
University
10 questions
Rapid Round 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 Computers
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