Search Header Logo

sonam IT

Authored by Sonam Tenzin

Information Technology (IT)

5th Grade

sonam IT
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

  1. What does an 'until loop' do in coding?

  1. It runs the code only one time

  1. It repeats until a condition is true

  1. It never stops running

  1. It runs only if the condition is false

Answer explanation

An 'until loop' keeps running the code inside it until a certain condition becomes true. It stops as soon as the condition is met. It is not the same as running forever or running only once.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Why do we use the 'wait' function in a program?

  1. To make the program run faster

  1. To pause the program for a short time

  1. To stop the program forever

  1. To repeat the code many times quickly

Answer explanation

The 'wait' function pauses the program for some time, so things don't happen too fast. It helps to see what is going on or to give time for something else to happen

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which of these is true about an 'until loop'?

  1. It runs only if the condition is true at the start

  1. It never checks the condition

  1. It runs code only once no matter what

  1. It stops running when the condition becomes true

Answer explanation

An 'until loop' runs the code inside it until the condition becomes true. It does not run when the condition is already true at the start.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. If you want your program to wait 2 seconds before moving on, what should you do?

  1. Use wait(2) to pause for 2 seconds

  1. Use until loop for 2 seconds

  1. Use wait(0) to pause for 2 seconds

  1. Use repeat loop 2 times

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What happens if the condition in an 'until loop' is already true before the loop starts?

  1. The loop runs forever

  1. The loop runs one time

  1. The loop does not run at all

  1. The loop waits for the condition to become false

Answer explanation

The 'until loop' will not run its code at all if the condition is true at the start because it only runs until the condition becomes true

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?