Search Header Logo

Logical Conditions

Authored by Ivan Devon

Instructional Technology

7th - 8th Grade

Used 2+ times

Logical Conditions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?

Discover more resources for Instructional Technology