Basic Programming

Basic Programming

8th Grade

33 Qs

quiz-placeholder

Similar activities

Programming Techniques

Programming Techniques

8th - 10th Grade

30 Qs

COMPUTER 3

COMPUTER 3

3rd Grade - University

30 Qs

Informatika 8-2

Informatika 8-2

7th - 9th Grade

38 Qs

Simple Machines Quiz 1

Simple Machines Quiz 1

7th - 9th Grade

31 Qs

he

he

8th - 10th Grade

38 Qs

Scratch Quiz

Scratch Quiz

6th - 8th Grade

28 Qs

Exploring the world wide web

Exploring the world wide web

7th - 12th Grade

28 Qs

Computing Fundamentals Pt 2

Computing Fundamentals Pt 2

6th - 8th Grade

35 Qs

Basic Programming

Basic Programming

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Dalton Hughes

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

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

Already have an account?