Basic Programming

Basic Programming

8th Grade

33 Qs

quiz-placeholder

Similar activities

Python

Python

8th Grade

31 Qs

Wrap Up in CS

Wrap Up in CS

7th - 8th Grade

35 Qs

Intro to Python

Intro to Python

8th Grade

30 Qs

Programming Basic 1

Programming Basic 1

8th Grade

30 Qs

K8_OnTapHKII

K8_OnTapHKII

8th Grade

30 Qs

python assessment

python assessment

8th - 9th Grade

35 Qs

Python Review 2

Python Review 2

8th - 9th Grade

30 Qs

PROGRAMMING WITH PYTHON

PROGRAMMING WITH PYTHON

7th - 8th Grade

35 Qs

Basic Programming

Basic Programming

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Dalton Hughes

Used 2+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print("The number is: "); num = 7; print(num)?
The number is: followed by 7 on the next line
7.0
The number is: 7
An error would occur

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type does the variable value = "1234" return?
String
Integer
Float
Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid Python keyword?
output
import
input
print

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of num1 = 8; num1 = 2; print(num1 + 10)?

12

8

10

18

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does def say_hello(): print("Hello, World!") do?
Displays nothing unless the function is called
Prints Hello, World! when run
Displays an error because the function was not called
Prints say_hello

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display output to the user?
print()
output()
display()
show()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to convert a float into an integer?
int()
float()
str()
bool()

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?