
Understanding InputBox and MsgBox

Quiz
•
Computers
•
7th Grade
•
Medium

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
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
Similar Resources on Wayground
10 questions
Micro-bits

Quiz
•
3rd - 8th Grade
14 questions
Input vs output devices

Quiz
•
7th - 8th Grade
20 questions
Information Technology Grade 6 Term 1

Quiz
•
6th - 7th Grade
10 questions
Flow Charts (OCR GCSE)

Quiz
•
7th - 11th Grade
20 questions
Programming Quiz

Quiz
•
1st - 10th Grade
14 questions
Input & Output Devices

Quiz
•
3rd - 8th Grade
10 questions
Programming - Test Data

Quiz
•
3rd - 11th Grade
15 questions
Parts of a Computer

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade