BASIC QUESTIONS ON PYTHON

BASIC QUESTIONS ON PYTHON

1st - 5th Grade

30 Qs

quiz-placeholder

Similar activities

Coding club quiz

Coding club quiz

5th - 7th Grade

30 Qs

Python Fundamentals-01

Python Fundamentals-01

5th - 10th Grade

30 Qs

3rd Grade Review

3rd Grade Review

2nd - 3rd Grade

25 Qs

PK-Test1

PK-Test1

1st Grade - University

30 Qs

kuiz ASK T1 Kod Arahan

kuiz ASK T1 Kod Arahan

1st Grade

28 Qs

Data Types

Data Types

1st - 5th Grade

25 Qs

Examen Python

Examen Python

1st - 5th Grade

27 Qs

ASAS SAINS KOMPUTER TING 3 (BAB 1 & 2)

ASAS SAINS KOMPUTER TING 3 (BAB 1 & 2)

1st Grade

25 Qs

BASIC QUESTIONS ON PYTHON

BASIC QUESTIONS ON PYTHON

Assessment

Quiz

Other

1st - 5th Grade

Hard

Created by

Robotic Schools

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name in Python?

my variable

my_variable

123myvariable

MY_VARIABLE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print(2 + 2 * 3)

6

8

10

12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string to an integer in Python?

str_to_int()

convert_to_int()

int()

parse_int()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is mutable?

int

float

string

list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to comment a single line in Python?

/* comment */

// comment

# comment

<!-- comment -->

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print(3 > 2 and 4 > 5)

True

False

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print("Hello" + 5)

Hello5

Hello

5

Error

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?