Search Header Logo
Python Basics

Python Basics

Assessment

Presentation

Computers

12th Grade

Hard

Created by

KIRAN SS

Used 23+ times

FREE Resource

1 Slide • 6 Questions

1

Python Basics

Slide image

2

Multiple Choice

In the following options which one is the list

1

(4,6,'Hello',4.3)

2

['Hi',4,1.21,'X']

3

{'Name':'Comp','Lan':'Python'}

3

Multiple Choice

Which is the correct form of a explicit type casting

1

a = 3.50

b = int(a)

2

a = 3.50

b = (int)a

3

a = 3.50

b = int a

4

All are correct

4

Multiple Choice

Choose the correct range of values of the code "range(1, 10, 3)"

1

1, 4, 7, 10

2

1, 3, 5, 7, 9

3

1, 4, 7

4

3, 6, 9

5

Multiple Choice

Predict the correct output

string = 'Hello World'

string.isalpha( )

1

True

2

False

3

None of these

6

Multiple Choice

Predict the correct output

sen='python is a HLL'

sen.capitalize( )

1

Python Is A Hll

2

Python is a HLL

3

Python Is A HLL

7

Multiple Choice

What will be returned after following string slicing

word='Welcome'

word[1:5:2]

1

ecm

2

Wlo

3

ec

Python Basics

Slide image

Show answer

Auto Play

Slide 1 / 7

SLIDE