Search Header Logo

Programming Logic Quiz

Authored by MJM Grefaldo

Professional Development

Professional Development

Used 5+ times

Programming Logic Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x > 5 Then x = x + 1 End If What happens if x is 6?

x stays 6

x becomes 7 (Correct)

x becomes 5

No change

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If temperature = 50 Then result = "Pass" End If What happens if score is 75?

result = "Fail"

result = "Pass" (Correct)

score is reset to 50

Nothing changes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If count = 10 Then count = 0 End If When does count reset to 0?

Whenever count is odd

When count is 10 (Correct)

If count is greater than 10

It never resets

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If items > 100 Then discount = 0.2 End If How is discount set if items is 150?

discount remains 0

discount = 0.1

discount = 0.2 (Correct)

discount = 0.5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For i = 1 To 3 display(i) Next i Which values of i are displayed?

1, 2, 3 (Correct)

2, 3, 4

1, 3

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If userAge >= 18 Then canVote = True End If Under what condition is canVote set to True?

userAge = 18 (Correct)

Always False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While num 1000 Then shipping = "Free" End If When does shipping become “Free”?

total 1000 (Correct)

total = 1000

Always

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?