Python Basics Quiz

Python Basics Quiz

6th Grade

8 Qs

quiz-placeholder

Similar activities

Bài 11. Định dạng văn bản lớp 6

Bài 11. Định dạng văn bản lớp 6

6th Grade

10 Qs

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

Test Pruebas Saber 11 CTS

Test Pruebas Saber 11 CTS

1st - 10th Grade

10 Qs

WORD TICS 1ASO 1AVT

WORD TICS 1ASO 1AVT

1st - 10th Grade

10 Qs

discrimination rapide x-ways

discrimination rapide x-ways

1st - 12th Grade

10 Qs

Bài tập Tin học lớp 4

Bài tập Tin học lớp 4

1st - 12th Grade

10 Qs

Digital Footprint

Digital Footprint

6th - 8th Grade

10 Qs

Online Safety

Online Safety

2nd Grade - University

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

6th Grade

Practice Problem

Hard

Created by

Richard Jones

Used 162+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign the value 10 to a variable named `age`?

A) age == 10

B) age = 10

C) 10 = age

D) "age" = 10

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is a string?

A) "123"

B) 123

C) 12.3

D) 1+2+3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you print the word "Hello" in Python?

A) print(Hello)

B) print("Hello")

C) echo "Hello"

D) console.log("Hello")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? `print("Fish" + "4")`

A) Fish4

B) Fish 4

C) Fish+4

D) Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get input from the user?

A) get()

B) input()

C) read()

D) fetch()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following operation: `print("8")

A) "eight"

B) 8

C) eight

D) "8"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert the string "123" into an integer in Python?

A) int("123")

B) "123".int()

C) integer("123")

D) convert("123", int)

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?