Search Header Logo

DSA Quiz

Authored by inocencio madriaga

Computers

University

Used 26+ times

DSA Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?