CBSE Class 12 Computer Science MCQ

CBSE Class 12 Computer Science MCQ

Assessment

Quiz

Computers

12th Grade

Medium

Created by

SKR Official

Used 6+ times

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct extension for a Python file?

.pyt

.py

.python

.pt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an immutable data type in Python?

List

Dictionary

Tuple

Set

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following expression? print(type(5/2))

int

float

double

complex

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid identifier in Python?

123variable

_varName

break

var-name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The id() function in Python is used to:

Identify the data type of a variable

Get the memory address of a variable

Convert one data type to another

Print the value of a variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid Python operator?

**

//

%%

and

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print(2 ** 3 ** 2)

64

512

9

81

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers