Python Fundamentals - 03

Python Fundamentals - 03

5th Grade - University

30 Qs

quiz-placeholder

Similar activities

Cerdas Cermat 17an Babak 1

Cerdas Cermat 17an Babak 1

9th Grade

25 Qs

PTS TEMA 7 KELAS 6 SEMESTER 2

PTS TEMA 7 KELAS 6 SEMESTER 2

6th Grade

25 Qs

Falsafah dan Teori Keperawatan

Falsafah dan Teori Keperawatan

University

25 Qs

KUIZ RBT TINGKATAN 1

KUIZ RBT TINGKATAN 1

12th Grade

25 Qs

matematika

matematika

5th Grade

25 Qs

BABAK 2

BABAK 2

12th Grade - University

25 Qs

PTS GANJIL B INDO KLS 8

PTS GANJIL B INDO KLS 8

12th Grade

25 Qs

PTS BI GANJIL KLS 8 2022

PTS BI GANJIL KLS 8 2022

12th Grade

25 Qs

Python Fundamentals - 03

Python Fundamentals - 03

Assessment

Quiz

Other

5th Grade - University

Practice Problem

Hard

Created by

Sreelakshmi Sridhar

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for i in range(0,12,2):

print(i)

1,2,3,4,5,6,7,8,9,10,11,12

0,2,4,6,8,10,12

0,2,4,6,8,10

2,4,6,8,10

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

It would display numbers from 1 to 10

It would display numbers from 2 to 10

It would display numbers from 2 to 9

It would display numbers from 1 to 9

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Dictionary keys must be immutable

True

False

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Select the correct way to access the value of a history subject

sampleDict[‘class’][‘student’][‘marks’][‘history’]

sampleDict[‘class’][‘student’][‘marks’][1]

sampleDict[‘class’][0][‘marks’][‘history’]

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the correct ways to get the value of marks key.

student = { "name": "Emma", "class": 9, "marks": 75}

m = student.get(2)

m = student.get('marks')

m = student[2])

m = student['marks']

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method should I use to convert String "welcome to the beautiful world of python" to "Welcome To The Beautiful World Of Python"

capitalize()

title()

Upper()

String()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python does not support a character type; a single character is treated as strings of length one.

False

True

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?