Search Header Logo
Python Session 1

Python Session 1

Assessment

Presentation

•

Computers

•

6th Grade - Professional Development

•

Hard

Created by

SURBHI BHARDWAJ

Used 14+ times

FREE Resource

13 Slides • 31 Questions

1

Python

by SURBHI BHARDWAJ

​SESSION - 1

2

Multiple Choice

Why did Guido van Rossum call his programming language Python?

1

He thinks Pythons were cool

2

He couldn't think of anything else

3

A friend suggested it

4

He loves Monty Python

3

media

4

media

5

Multiple Choice

Full form of IDLE

1

Integrated Development Learning language

2

Integral Development Learning Language

3

Invest Development Learning Language

4

Integrated Development Local Language

6

Multiple Choice

Modes of Python Language

1

3

2

5

3

2

4

4

7

media

​

8

Multiple Choice

Evaluate the following expression in Python?

24 // 4 // 4

1

1

2

2

3

24

4

1.5

9

Fill in the Blanks

In Python Strings are

Type answer...

10

media

11

Multiple Choice

For writing a program Python uses which of the following

1

Brackets { }

2

Indentation

12

Multiple Choice

Is 'for' a Keyword ?

1

TRUE

2

FALSE

13

Multiple Choice

No of keywords

1

33

2

32

3

34

4

31

14

media

15

Multiple Choice

Stores whole numbers only
1
INTEGER
2
REAL (Float)
3
STRING
4
CHARACTER

16

Multiple Choice

Arithmetic Operators
What is a % ?
1
Multiplication
2
Division
3
Modulo
4
Increment

17

Multiple Choice

What do we use at the start of a comment line?

1

@

2

#

3

"

4

*

18

Multiple Choice

What arithmetic operations does // perform in Python?

1

Remainder

2

Division

3

Floor Division

4

Modulus

19

Multiple Choice

Which of the following is a proper arithmetic expression in Python?

1

10 (15 + 6)

2

(10 * 2) (4 + 8)

3

5 * (6 - 2)

20

Multiple Choice

Evaluate the following expression in Python

2 * 3 ** 2

1

18

2

36

3

12

21

Multiple Choice

identify python multi-line comments

1

"""

"""

2

'''

'''

3

both a and b

4

=begin

=cut

22

Multiple Choice

Evaluate the following expression in Python?

2 + int(4.5)

1

6

2

6.5

3

7

4

Error

23

media

24

Multiple Choice

30 == 3.0
1
TRUE
2
FALSE

25

Fill in the Blanks

A '

Type answer...

' operator works with the values TRUE and FALSE

26

Multiple Choice

x = 5


print(x > 3 and x < 10)

1

True

2

False

27

media

28

media

29

Multiple Choice

From assignment operators

1

>>=

2

==

3

is

4

in

30

Multiple Select

With an AND operator...

1

Both conditions must be false

2

Either condition must be true

3

Both conditions must be true

4

Both numbers are added together

31

media

32

Multiple Choice

IN and NOT IN are membership operators.

1

TRUE

2

FALSE

33

Multiple Choice

a= 63

a<<2

what is output for bit-wise left-shift

1

230

2

243

3

250

4

252

34

Multiple Choice

the output of: x >= y

1

Adjust x so that it is greater than or equal y

2

True if x is greater than or equal y

3

x is shifted y bits to the right

4

False if x equals y in value

35

media

36

Multiple Choice

Which of the following is an operator that compares values with symbols such as '<' or '='

1

Comparison Operator

2

Relational Operator

3

Archimedes Operator

4

Arithmetic Operator

5

Numerical Scale Operator (NSO)

37

Multiple Choice

IS is an Identity Operator.

1

True

2

False

38

media

39

Multiple Choice

Which of these is not a type of operator?

1

Arithmetic Operator

2

Relational Operator

3

Communication Operator

4

Boolean Operator

40

media

41

Multiple Choice

a>=b and b**2+a==8 or a^b<<2>27

1

True

2

False

3

true

4

Error

42

Multiple Choice

x = 5

print(not(x > 3 and x < 10))

1

not(x > 3 and x < 10)

2

True

3

False

4

syntax error

43

Multiple Choice

x = x ^ 3 can also be written as

1

x = x pow 3

2

x = x ** 3

3

x = x XOR 3

4

x ^= 3

44

Multiple Choice

What is the process of converting one datatype to another called?

1

Data conversion.

2

Type Casting.

3

Type Conversion.

4

Concatenation.

pattern-tertiary
Python

by SURBHI BHARDWAJ

​SESSION - 1

Show answer

Auto Play

Slide 1 / 44

SLIDE