DSA Quiz

DSA Quiz

University

15 Qs

quiz-placeholder

Similar activities

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

Python Control Structures

Python Control Structures

University

20 Qs

LOOPS IN C++

LOOPS IN C++

10th Grade - University

10 Qs

CSNP-04103 Chapter 5 - Loops

CSNP-04103 Chapter 5 - Loops

University

10 Qs

Quiz No. 3 - JS Loops

Quiz No. 3 - JS Loops

University

20 Qs

PHP Quiz 1

PHP Quiz 1

University

20 Qs

Assignment 7 - Looping

Assignment 7 - Looping

University

16 Qs

Q2 - Comp Vision

Q2 - Comp Vision

University

10 Qs

DSA Quiz

DSA Quiz

Assessment

Quiz

Computers

University

Hard

Created by

inocencio madriaga

Used 26+ times

FREE Resource

15 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

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

selection statement

action statement

decision maker

action maker

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When one control statement is located within another, it is said to be ____.

blocked

compound

nested

closed

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will cause a logical error if you are attempting to compare x to 5?

if (x == 5)

if (x = 5)

if (x <= 5)

if (x >= 5)

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Selection stucture consist of

if else statements

switch case statement

for statement

while statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With while loops if the conditional expression evaluates to true, the body of the loop is not preformed; control transfers to the statements following the loop.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using the break or continue statements with a loop violates the single entry and single exit guidelines for developing a loop.

False

True

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?