
Understanding InputBox and MsgBox
Authored by Sophia Mclaren
Computers
7th Grade
Used 2+ times

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 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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
What is a computer
Quiz
•
KG - University
15 questions
S2 Business Letters Assessment
Quiz
•
7th Grade
10 questions
7 ICT Sem 2 Reviewer
Quiz
•
7th Grade
10 questions
ความปลอดภัยเทคโนโลยีสารสนเทศ
Quiz
•
7th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
10 questions
Blue Cross Websites
Quiz
•
7th Grade
15 questions
7ICT - Algorithms Revision Quiz
Quiz
•
7th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade