Python Basics: Variables and Syntax

Python Basics: Variables and Syntax

10th Grade

30 Qs

quiz-placeholder

Similar activities

2.1.1 CSE Transitioning from Block to Text Coding

2.1.1 CSE Transitioning from Block to Text Coding

9th - 12th Grade

33 Qs

Python Class 9

Python Class 9

9th - 10th Grade

25 Qs

Turtle Python Quiz 1

Turtle Python Quiz 1

10th - 12th Grade

27 Qs

CodeHS Tracy the Turtle Final Test

CodeHS Tracy the Turtle Final Test

6th - 10th Grade

30 Qs

1st Quarter Python Test

1st Quarter Python Test

10th - 12th Grade

30 Qs

Python Quiz

Python Quiz

10th Grade

31 Qs

ASESMEN HARIAN INFORMATIKA KELAS X SMT-2 BAB 1

ASESMEN HARIAN INFORMATIKA KELAS X SMT-2 BAB 1

10th Grade

25 Qs

Yr 8 Python Summative Assessment

Yr 8 Python Summative Assessment

7th - 11th Grade

30 Qs

Python Basics: Variables and Syntax

Python Basics: Variables and Syntax

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Jonathon Mcmanus

Used 13+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax to print "Hello, World!" in Python?

echo("Hello, World!")

print("Hello, World!")

println("Hello, World!")

output("Hello, World!")

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is a valid variable name in Python?

2name

name_2

@name

name@

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What data type is used to store a sequence of characters in Python?

Integer

String

Dictionary

List

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which symbol is used for addition in Python?

+

/

-

*

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you start a comment in Python?

//

#

''

>

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the following Python expression: 7 + 5 * 2?

24

17

19

22

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the print() function do in Python?

Displays output on the screen

Adds two numbers together

Stores a variable

Changes a string to uppercase

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?