Advance Level

Advance Level

8th - 10th Grade

10 Qs

quiz-placeholder

Similar activities

Intro to Python

Intro to Python

9th - 12th Grade

10 Qs

Small Basic Quiz

Small Basic Quiz

7th - 9th Grade

12 Qs

Lesson 1 | Introduction to Python

Lesson 1 | Introduction to Python

9th Grade

15 Qs

My Python : About Me

My Python : About Me

6th - 8th Grade

10 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Quiz 140 - Comments in Python code

Quiz 140 - Comments in Python code

9th Grade

10 Qs

Python Basics Quiz: Test Your Coding Knowledge!

Python Basics Quiz: Test Your Coding Knowledge!

9th Grade

6 Qs

HTML

HTML

6th - 8th Grade

15 Qs

Advance Level

Advance Level

Assessment

Quiz

Computers

8th - 10th Grade

Hard

Created by

Gayathri Ajvankar

Used 25+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when we execute list(“hello”)?

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

[‘hello’]

[‘llo’]

[‘olleh’]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the len(fruits)?

4

5

8

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

7

2

1

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a block of code in Python language?

Indentation

Key

Brackets

All of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below snippet code?

for num in range(5):

print(num)

Prints 0 to 5 numbers

prints 0 to 4 numbers

prints 5

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true for variable names in Python?

underscore and ampersand are the only two special characters allowed

unlimited length

all private members must have leading and trailing underscores

none of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the object below ?
L = [1, 23, ‘hello’, 1]

List

Dictionary

Tuple

Array

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?