Revision on loops

Revision on loops

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Java Conditional Constructs

Java Conditional Constructs

9th - 10th Grade

20 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Chapter 5 loops structure

Chapter 5 loops structure

10th Grade

20 Qs

Practice for CPA JavaScript quiz #4

Practice for CPA JavaScript quiz #4

9th - 12th Grade

15 Qs

Java conditional/loop/method/user input

Java conditional/loop/method/user input

9th - 12th Grade

23 Qs

Intro to Java Loops

Intro to Java Loops

9th - 12th Grade

15 Qs

Basic Python

Basic Python

10th - 12th Grade

20 Qs

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

Revision on loops

Revision on loops

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

pranali naik

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator cannot be used with if-else statement?

<=

? :

&&

||

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output of the following code snippet:

Both values are equal

Incorrect use of the == operator

Values are not equal

No output

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following code snippet:

x = (c >d) ? c : d;

x = (c >d) ? d : c;

x = (c >d) ? c : c;

x = (c >d) ? d : d;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if ((a > b) && (a > c)), then which of the following statements is true?

a is the largest number.

b is the largest number.

c is the largest number.

b is the smallest number.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following code snippet:

Which of the following statements is correct?

case 1 will be executed.

case 2 will be executed.

default will be executed.

both case 1 and 2 will be executed.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A sequence of statements enclosed between a pair of curly brackets is called

an empty statement

a compound statement

a null statement

a void statement

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which clause is optional in the switch statement?

default

case

switch

none of these

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?