
BASIC STATMENT AND BUILT-IN FUNCTION
Authored by Nnamdi Uche
Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an assignment statement in programming?
Print output to the screen
Assign a value to a variable
Receive input from the user
Perform arithmetic calculations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of basic statement allows the program to execute a block of code only if a specified condition is true?
Assignment statement
Function statement
Conditional statement
Loop statement
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'input()' function in programming?
Assign a value to a variable
Perform arithmetic calculations
Print output to the screen
Receive input from the user
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which built-in function allows the program to receive input from the user?
write()
print()
input()
read()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of basic statement is used to execute a block of code repeatedly as long as a specified condition is true?
Loop statement
Conditional statement
Assignment statement
Function statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which built-in function is used to write output to the screen?
input()
read()
write()
print()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the statement 'x = 5', what is '5'?
A value
A function
A loop
A variable
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?