wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Type- XI

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of these is not a core data type?

a)

string

b)

lists

c)

tuples

d)

class

2.

What is the maximum possible length of an identifier?

a)

31 characters

b)

63 characters

c)

79 characters

d)

none of the mentioned

3.

All keywords in Python are in

a)

lower case

b)

UPPER CASE

c)

Capitalized

d)

None of the above

4.

Which of the following is not valid variable name in Python?

a)

_var

b)

var_name

c)

11var

d)

var11

5.

Which statement is correct?

a)

List is immutable && Tuple is mutable

b)

List is mutable && Tuple is immutable

c)

Both are Mutable.

d)

Both are Immutable

6.

Which of the following function is used to know the data type of a variable in Python?

a)

datatype()

b)

typeof()

c)

type()

d)

vartype()

7.

Which one of the following has the highest precedence in the expression?

a)

Addition

b)

Multiplication

c)

Exponential

d)

Parentheses

8.

What will be the output of 7^10 in python?

a)

13

b)

15

c)

2

d)

None of these

9.

How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.

a)

arr[0]

b)

arr[5]

c)

arr[last]

d)

arr[-1]

10.

Which Of The Following Statements Are Correct?

a)

A reference variable is an object.

b)

A reference variable refers to an object.

c)

An object may contain other objects.

d)

An object can contain the references to other objects.