Basic Programming

Basic Programming

8th Grade

33 Qs

quiz-placeholder

Similar activities

Python Y10

Python Y10

4th - 12th Grade

29 Qs

Year 8 Python

Year 8 Python

8th Grade

29 Qs

Computer Pretest1(Python Grade7_t1)

Computer Pretest1(Python Grade7_t1)

3rd Grade - University

30 Qs

Year 8 Python - Lesson 1 - Variables, Datatypes & Errors

Year 8 Python - Lesson 1 - Variables, Datatypes & Errors

6th - 8th Grade

30 Qs

Python quiz 1

Python quiz 1

7th Grade - Professional Development

30 Qs

Year 9 Term 2.2 Python Search Assessment 2024

Year 9 Term 2.2 Python Search Assessment 2024

8th Grade

30 Qs

Year 8 Assessment review

Year 8 Assessment review

8th Grade

30 Qs

Python quiz

Python quiz

2nd Grade - University

29 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?