Search Header Logo

Test 3 Edhesive Review

Authored by Scott Symons

Computers

9th - 12th Grade

Used 67+ times

Test 3 Edhesive Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When do you use an else statement?

To Input a variable

To handle string values

To tell what will happen when an if-statement is false.

To end an IF statement.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if num1 and num2 are the same.

if (num1 = num2)

if (num1 < num2)

if (num1 == num2)

if (num1 != num2)

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Select all the mistakes in the following: There may be more than one.

The else should have a :

The = should be ==

elseif should be elif

there is no end if

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT true about algorithms?

have an order

have clear instructions

stop in a finite amount of time

do only number calculations

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following code could be rewritten using:

not

and

or

none of the others

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is an IF statement used for? Select all that apply.

Make True/ False decisions

Repeat sections of code

To count user input

Select between options in a program

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if the number in the variable text1 is greater than 15.

if (text1 > 15):

if (text1 >= 15):

if (text1 > "15"):

if (text1 < "15"):

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?