Python syntax

Python syntax

4th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Chapter 1 Python

Chapter 1 Python

8th Grade - University

12 Qs

Print Function

Print Function

7th Grade

7 Qs

Python Basics and Syntax

Python Basics and Syntax

6th - 12th Grade

9 Qs

Basic Python

Basic Python

6th - 12th Grade

9 Qs

Coding Basics

Coding Basics

6th - 12th Grade

9 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

Python - Week 1

Python - Week 1

8th - 10th Grade

10 Qs

Python syntax

Python syntax

Assessment

Quiz

Computers

4th - 8th Grade

Easy

CCSS
6.EE.B.6, L.2.2C

Standards-aligned

Created by

CodeLQ Team

Used 172+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is syntax?
Syntax is the word used to describe an error
Syntax is the rules of the programming language
It is used to read information
It is used to output information 

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the word (command) used to display numbers and text on the screen?
print
input
output
command

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to assign values to a variable?
equals =
plus + 
forward slash /
asterisk *

Tags

CCSS.6.EE.B.6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)

Tags

CCSS.L.2.2C

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!" * 2)
TypeError
Hello world world!
Hello world!Hello world!
Hello world! * 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

name = "Dave"

print (name)

Dave

'Dave'

name

(name)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Tanner" to the variable name?
name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

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?