Branching & Loop (Set B)

Branching & Loop (Set B)

University

10 Qs

quiz-placeholder

Similar activities

PHP Assessment 1

PHP Assessment 1

University

14 Qs

Java Loops

Java Loops

University

10 Qs

FGCT4023 Topic 3 - Control

FGCT4023 Topic 3 - Control

University

10 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

javaquizvivek

javaquizvivek

University

12 Qs

Python For

Python For

University

10 Qs

VB - Quiz 1

VB - Quiz 1

University

10 Qs

Java Programming I 4

Java Programming I 4

University

12 Qs

Branching & Loop (Set B)

Branching & Loop (Set B)

Assessment

Quiz

Computers

University

Medium

Created by

Suryani Sulong

Used 40+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?