chapter 4

chapter 4

University

10 Qs

quiz-placeholder

Similar activities

Recap of Sessions 20 & 21

Recap of Sessions 20 & 21

11th Grade - University

10 Qs

Energy Management Techniques for SoC

Energy Management Techniques for SoC

University

14 Qs

Training Day 2 Defect Quiz

Training Day 2 Defect Quiz

University

6 Qs

Idioms Unveiled: Understanding Everyday Expressions

Idioms Unveiled: Understanding Everyday Expressions

4th Grade - University

15 Qs

Oops moment/1

Oops moment/1

University

13 Qs

Present perfect

Present perfect

2nd Grade - University

14 Qs

Topic: Introduction to Structural Steel Design

Topic: Introduction to Structural Steel Design

4th Grade - University

10 Qs

EPO460 - Three phase system

EPO460 - Three phase system

University

10 Qs

chapter 4

chapter 4

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

Gousineyah rao

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 6. Which logical operator checks if both conditions are true?

A) &&

B) ||

C) !

D) ==

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. 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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?