BASIC STATMENT AND BUILT-IN FUNCTION

BASIC STATMENT AND BUILT-IN FUNCTION

8th Grade

20 Qs

quiz-placeholder

Similar activities

Python basic commands

Python basic commands

8th Grade

20 Qs

Year 8 Python - Lesson 3

Year 8 Python - Lesson 3

6th - 8th Grade

19 Qs

Python Vocab Review

Python Vocab Review

6th - 8th Grade

15 Qs

python intro

python intro

4th - 12th Grade

17 Qs

Review Python

Review Python

8th Grade

15 Qs

Python basics

Python basics

7th - 10th Grade

18 Qs

Python

Python

8th Grade

20 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

BASIC STATMENT AND BUILT-IN FUNCTION

BASIC STATMENT AND BUILT-IN FUNCTION

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Nnamdi Uche

Used 1+ times

FREE Resource

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

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?