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
CIS1101-programming practice2

Quiz
•
University
10 questions
Rapid Round 1

Quiz
•
University
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
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University