Pages

Sunday, 10 October 2021

CBSE Class 11 - Informatics Practices - Brief Overview Of Python (MCQs)(#class11InformaticsPractices)(#cbse2021)(#eduvictors)(#pythonmcqs)

CBSE Class 11 - Informatics Practices - Brief Overview Of Python (MCQs)

CBSE Class 11 - Informatics Practices - Brief Overview Of Python (MCQs)(#class11InformaticsPractices)(#cbse2021)(#eduvictors)(#pythonmcqs)


Q1: Who developed Python language?

(a) Bill Gates

(b) Guido Van Rossum 

(c) Jeff Bezos

(d) Steve Jobs 



Q2: Python scipts are saved with the extension as ...?

(a) .python 

(b) .pe

(c) .py

(d) .pi



Q3: Python shell does not support which of the following execution mode?

(a) Interactive mode

(b) Script mode

(c) Compiler mode

(d) None of these



Q4: Python has a built-in editor called IDLE which can be used to create program. IDLE stands for ...?

(a) Indigenous Development Lab

(b) Integrated Development Environment

(c) Integrated Developers Local Environment 

(d) India Developers Environment



Q5: Which of the following is a VALID identifier?

(a) global

(b) average@score

(c) 0scores

(d) maths_marks



Q6: Which of the following is an assignment operator in Python?

(a) = 

(b) === 

(c) >>> 

(d) =+



Q7: For what type of error, program execution does not stop and produce wrong result.

(a) Syntax error

(b) Semantic error

(c) Runtime error

(d) All of these



Q8: To add two numbers, a student typed the following statements

a = 10

b = 7

sum = (a +b

print(sum)


What type of error will be shown by python shell?

(a) Syntax error

(b) Semantic error

(c) Runtime error

(d) All of these



Q9: To find the average of two numbers 10 and 12 and a student write code as 

>>>10 + 12/2

What type of error it is?

(a) Syntax error

(b) Semantic error

(c) Runtime error

(d) No error, python shell displays the correct result.



Q10: What will be the output on screen?

>>> a = 5 >>> b = 2

>>> a/b

(a) 2

(b) 2.5

(c) 3

(d) None of the above



Q11: Process of identifying and removing errors from a computer program is called ________.

(a) program execution.

(b) compiling

(c) debugging

(d) none of these



Q12: What is the output of the following statement?

>>> print(4.00/(2.0 + 2.0))

(a) 1.0

(b) 2.0

(c) 3.0

(d) 4.0



Q13: What type of error is reported when the following statement is executed?

>>> 25/0

(a) Syntax error

(b) Semantic error

(c) Runtime error

(d) No error, python shell displays the correct result.



Q14: Which of the following is used by interpreter to identify code blocks?

(a) Braces

(b) Indentation 

(c) Commas

(d) BEGIN-END statements



Q15: Output of the following statement is 

>>> list(range(2, 10))

(a) [2, 3, 4, 5, 6, 7, 8, 9]

(b) [2, 3, 4, 5, 6, 7, 8, 9, 10]

(c) [3, 4, 5, 6, 7, 8, 9]

(d) [3, 4, 5, 6, 7, 8, 9, 10]



Q16: What is the output of the following snippet?

for i in range(2,6,2): 

print(i, end='')

if i == 3: 

break


(a) 2345

(b) 234 

(c) 23

(d) 24




Answers:

1: (b) Guido Van Rossum 

2: (c) .py

3: (c) Compiler mode

4: (b) Integrated Development Environment

5: (d) maths_marks

6: (a) = 

7: (b) Semantic error

8: (a) Syntax error

9: (b) Semantic (Logical) error

10: (b) 2.5

11: (c) debugging

12: (a) 1.0

13: (c) Runtime error

14: (b) Indentation 

15: (a) [2, 3, 4, 5, 6, 7, 8, 9]

16: (d) 24


No comments:

Post a Comment

We love to hear your thoughts about this post!

Note: only a member of this blog may post a comment.