Understanding InputBox and MsgBox

Understanding InputBox and MsgBox

7th Grade

15 Qs

quiz-placeholder

Similar activities

Information Technology Grade 6 Term 1

Information Technology Grade 6 Term 1

6th - 7th Grade

20 Qs

Flow Charts (OCR GCSE)

Flow Charts (OCR GCSE)

7th - 11th Grade

10 Qs

Programming Quiz

Programming Quiz

1st - 10th Grade

20 Qs

Excel Basics

Excel Basics

6th - 8th Grade

20 Qs

informatika kelas 7

informatika kelas 7

7th Grade

18 Qs

Parts of a Computer

Parts of a Computer

6th - 8th Grade

15 Qs

Micro-bits

Micro-bits

3rd - 8th Grade

10 Qs

Input vs output devices

Input vs output devices

7th - 8th Grade

14 Qs

Understanding InputBox and MsgBox

Understanding InputBox and MsgBox

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Sophia Mclaren

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the `InputBox` function in Visual Basic?

To display a message to the user

To get input from the user

To close the programme

To save a file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Visual Basic function would you use to show a simple message to the user?

InputBox

ShowBox

MsgBox

DisplayBox

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to use `MsgBox` in Visual Basic?

MsgBox("Hello!")

MsgBox[Hello!]

MsgBox<"Hello!">

MsgBox: "Hello!"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to ask the user for their name, which function would you use?

MsgBox

InputBox

Print

ShowName

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code display? ```vb MsgBox("Welcome to Visual Basic!") ```

It will ask the user for input

It will display a message box with "Welcome to Visual Basic!"

It will close the programme

It will show an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid use of `InputBox`?

InputBox("Enter your age:")

InputBox("What is your favourite colour?")

InputBox("How many feet are in a metre?")

InputBox(42)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to store the result of an `InputBox` in a variable?

name = InputBox("Enter your name:")

InputBox = name("Enter your name:")

name("Enter your name:") = InputBox

InputBox("Enter your name:") = name

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?