Chapter 04 Worksheet

Quiz
•
Computers
•
10th Grade
•
Hard
Sheeraz Alee
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the if statement in programming?
Selection
Sequence
Repetition
Input of data
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is suitable for a situation with only two choices based on a condition?
switch statement
if-else statement
if-else-if statement
if statement
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement can replace a switch statement?
if-else statement
if-else-if statement
conditional operator
if statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement can be used instead of a conditional operator?
if-else statement
else-if statement
if statement
switch statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the break statement in a switch statement?
To exit the program
To exit from the body of switch statement
To terminate the program
To continue the loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a multiple selection statement?
if-else-if statement
if-else statement
none of these
if statement
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which selection structure tests only for equality?
if statement
if-else statement
else-if statement
switch statement
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
IF & CASE Conditional Statements

Quiz
•
9th - 12th Grade
10 questions
Programming - Selection in an Algorithm

Quiz
•
1st - 11th Grade
15 questions
1 - Pseudocode

Quiz
•
9th - 10th Grade
10 questions
Java Conditions and If Statements

Quiz
•
10th Grade
15 questions
C Programming Concepts

Quiz
•
10th Grade
12 questions
CodeHS Unit 1

Quiz
•
9th - 12th Grade
10 questions
VB If...Then...Else Statements

Quiz
•
10th Grade
10 questions
GCSE Unit 2 Prep - pseudocode

Quiz
•
10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade