Branching & Loop (Set B)

Branching & Loop (Set B)

University

10 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

University

15 Qs

2024 - Struktur Data Quiz 1

2024 - Struktur Data Quiz 1

University

10 Qs

Python Week 1 & 2

Python Week 1 & 2

University

10 Qs

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

CS100||MsWord

CS100||MsWord

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Branching & Loop (Set B)

Branching & Loop (Set B)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Suryani Sulong

Used 40+ times

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

30 sec • 1 pt

The __________ statement uses single expression for multiple choices

loop

switch

multiple value

if else

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

name the for loop used for two time ___________

loop

if else

nested for loop

for loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a ____ control structure, the computer executes particular statements depending on some condition(s).

looping

repetition

selection

sequence

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose x is 5 and y is 7. Choose the value of the following expression:


(x != 7) && (x <= y)

false

true

0

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators has the highest precedence?

!

*

%

=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression in an if statement is sometimes called a(n) ____.

selection statement

action statement

decision maker

action maker

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following C++ code?

int x = 35;

int y = 45;

int z;


if (x > y)

z = x + y;

else

z = y – x;


cout << x << " " << y << " " << z << endl;

35 45 80

35 45 10

35 45 –10

35 45 0

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?