Search Header Logo

Small Basic Programming Quiz

Authored by Andrew Harrop [Manchester]

Information Technology (IT)

7th Grade

Used 24+ times

Small Basic Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A type of loop

A storage location identified by a memory address

A type of function

A control structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid data type in Small Basic?

Integer

String

Boolean

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an 'If' statement in programming?

To repeat a block of code

To make decisions based on conditions

To define a function

To store data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a loop structure in Small Basic?

For...EndFor

If...EndIf

Function...EndFunction

Input...Output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do? ```smallbasic For i = 1 To 5 TextWindow.WriteLine(i) EndFor ```

Prints numbers 1 to 5

Prints numbers 0 to 4

Prints the number 5

Prints the number 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take input from the user in Small Basic?

TextWindow.Read()

TextWindow.Write()

TextWindow.Print()

TextWindow.Display()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? ```smallbasic TextWindow.WriteLine("Hello, World!") ```

Hello, World!

"Hello, World!"

Hello World

"Hello World"

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?