Flow Control & OOO

Flow Control & OOO

Assessment

Flashcard

Created by

Quizizz Content

Information Technology (IT)

9th - 12th Grade

Hard

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD

Front

All programs must have iteration statements

Back

False

2.

FLASHCARD

Front

Which type of statement stores a value in a variable? Options: selection, iteration, sequential, assignment

Back

assignment

3.

FLASHCARD

Front

Which operator returns the remainder of integer division? Options: quotient, parameter, mod, sin

Back

mod

4.

FLASHCARD

Front

What is displayed after this code segment finishes?
num1 ← 4
num2 ← 7
num1 ←num2
num2 ← num1
display(num1)
display(num2)

Back

7 7

5.

FLASHCARD

Front

What is displayed after this code segment finishes?
num1 ← 4
num2 ← 7
num1 ← num1 + num2
num2 ← num1 % 2
display(num2)

Back

1

6.

FLASHCARD

Front

What's the best data type for a variable that will hold a person's age?

Back

integer

7.

FLASHCARD

Front

What is the best data type for holding a user's name?

Back

string

8.

FLASHCARD

Front

What is the best data type for holding the answer to "Do you have a dog?"?

Back

boolean

9.

FLASHCARD

Front

Which is the BEST name for a variable to hold the price of an item in your store?

Back

price