Test 3 Edhesive Review

Test 3 Edhesive Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Scott Symons

Used 67+ times

FREE Resource

Student preview

quiz-placeholder

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"):

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?