Logical Conditions

Logical Conditions

Assessment

Quiz

Created by

Ivan Devon

Instructional Technology

7th - 8th Grade

2 plays

Hard

Student preview

quiz-placeholder

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you write the following words as a string data type?


HELLO

Hello

HELLO

"HELLO"

'HELLO'

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do I declare a variable that contains integers in it?

variable = 1234

int variable = 1234

variable == 1234

int variable = "1234"

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a float data type?

5

-5

5.0

"5"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this is a char data type?

5

"5"

'5'

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How many Hello will the following code produce?

int Ivan = 50

int Artem = 20

while( Ivan > 10 && Artem < 50)

print "Hello"

Ivan = Ivan - 10

Artem = Artem + 10

1

2

3

4

5

6.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

What will the following code produce?


int count = 0

while (count < 5)

if count == 4

print "Thursday"

if count == 1

print "Monday "

if count == 5

print "Friday"

if count == 2

print "Tuesday "

if count == 3

print "Wednesday "

count = count +1

Discover more resources for Instructional Technology