Python Basics

Python Basics

KG - University

15 Qs

quiz-placeholder

Similar activities

prep1-revision

prep1-revision

7th Grade

12 Qs

who doesn't love ali-a's intro

who doesn't love ali-a's intro

1st Grade

20 Qs

Tin học 5 - CĐ2 - Soạn thảo văn bản

Tin học 5 - CĐ2 - Soạn thảo văn bản

5th Grade

18 Qs

Hàm

Hàm

Professional Development

10 Qs

Internet i mrežni preglednik, pretraživanje interneta

Internet i mrežni preglednik, pretraživanje interneta

5th Grade

11 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT 10 : Introduction to Adobe Illustrator(CS5)

ICT 10 : Introduction to Adobe Illustrator(CS5)

10th Grade

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

KG - University

Practice Problem

Hard

Created by

Aiswarya Mohan

Used 248+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What will be the datatype of the var in the below code snippet?

float and str

number and str

int and str

number and char

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How is a code block indicated in Python?

Bracket

Indentation

Key

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What will be the output of the following code snippet?

[2,2,3]

(2,2,3)

(1,2,3)

Error

Answer explanation

Tuples are immutable so can't be updated with a new value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be the output of the following code snippet?

int and float

float and int

float and float

int and int

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be the output of the following code snippet?

15

0

20

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following concepts is not a part of Python?

Pointers

Loops

Dynamic typing

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be the output of the following code snippet?

['Sunday','Monday','Tuesday','Wednesday']

['Monday','Tuesday','Wednesday']

['Sunday','Monday','Wednesday']

None of these

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?