Search Header Logo

Programming Logic Quiz

Authored by MJM Grefaldo

Professional Development

12th Grade

Used 1+ 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

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

No change

x becomes 5

x becomes 7

x stays 6

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

score is reset to 50

result = "Fail"

result = "Pass"

Nothing changes

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

When count is 10

Whenever count is odd

It never resets

If count is greater than 10

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

discount = 0.1

discount = 0.2

discount remains 0

discount = 0.5

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

1, 3

1, 2, 3

None

2, 3, 4

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

userAge = 18

Always False

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

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

total 1000

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?