
chapter 4

Quiz
•
Engineering
•
University
•
Hard
Gousineyah rao
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
1. What is the purpose of relational operators?
A) To compare values
B) To define variables
C) To loop through conditions
D) To assign values
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2. Which relational operator is used to check if two values are equal?
A) =
B) ==
C) !=
D) >=
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3. Which statement is true about an if statement?
A) It always executes a block of code.
B) It executes a block of code only if a condition is true.
C) It executes a block of code only if a condition is false.
D) It executes a block of code regardless of the condition.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4. What does the else part of an if/else statement do?
A) It executes when the if condition is true.
B) It executes when the if condition is false.
C) It always executes after the if block.
D) It loops back to the if statement.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
5. What happens if a break statement is omitted in a switch statement?
A) The program stops.
B) The program "falls through" and executes subsequent cases.
C) The program loops back to the beginning.
D) The program exits the loop.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
6. Which logical operator checks if both conditions are true?
A) &&
B) ||
C) !
D) ==
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
7. In an if/else if statement, which block executes when none of the conditions are true?
A) The first else if block.
B) The else block.
C) The second if block.
D) None of the blocks.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Loops & Operator

Quiz
•
University
10 questions
Manufacturing Processes

Quiz
•
University
15 questions
2.3.4 - NSPE Code of Ethics

Quiz
•
10th Grade - University
15 questions
Cryptography and Network Security - Unit 1

Quiz
•
University
15 questions
FCS-Review

Quiz
•
University
10 questions
Embedded Systems and RTOS Quiz

Quiz
•
University
15 questions
Location Analysis

Quiz
•
University
10 questions
Aircraft Structure Chapter 2

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 Engineering
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