0% found this document useful (0 votes)
13 views7 pages

Chapter5_50_MCQ_Class11_CS

The document contains 50 multiple-choice questions (MCQs) related to Python programming, covering topics such as data types, operators, functions, and syntax. Each question is followed by four answer options, with the correct answers provided in an answer key at the end. This resource is designed for Class 11 Computer Science students to assess their understanding of Python.

Uploaded by

drezhil2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

Chapter5_50_MCQ_Class11_CS

The document contains 50 multiple-choice questions (MCQs) related to Python programming, covering topics such as data types, operators, functions, and syntax. Each question is followed by four answer options, with the correct answers provided in an answer key at the end. This resource is designed for Class 11 Computer Science students to assess their understanding of Python.

Uploaded by

drezhil2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Class 11 Computer Science (NCERT)

Chapter 5: Getting Started with Python - 50 MCQs

1. Python is a _______ programming language.

(a) Low-level (b) High-level (c) Assembly-level (d) Machine-level

2. Which symbol is used to indicate a comment in Python?

(a) // (b) # (c) * (d) _

3. Which function is used to display output in Python?

(a) input() (b) print() (c) show() (d) output()

4. What will be the output of: print(2 + 3 * 5)?

(a) 25 (b) 17 (c) 15 (d) 20

5. The extension of a Python file is:

(a) .txt (b) .py (c) .doc (d) .pyt

6. Which of the following is NOT a valid identifier?

(a) my_var (b) 2value (c) value1 (d) _temp

7. What is the output of print(10/4)?

(a) 2 (b) 2.5 (c) 2.0 (d) 2.25

8. The // operator performs:

(a) Float division (b) Integer division (c) Addition (d) Exponentiation

9. Which operator is used for exponentiation in Python?

(a) ^ (b) ** (c) * (d) %

10. What is the output of: print(2**3)?

(a) 6 (b) 8 (c) 9 (d) 12

11. Which function is used to take input from the user?


(a) get() (b) input() (c) scan() (d) fetch()

12. The input() function always returns:

(a) int (b) string (c) float (d) list

13. What is the correct output of print(5//2)?

(a) 2.5 (b) 2 (c) 3 (d) 2.0

14. Python files are saved with which extension?

(a) .py (b) .pyt (c) .pt (d) .python

15. What will be the output of print('5' + '7')?

(a) 12 (b) 57 (c) 5+7 (d) Error

16. Which of the following is a keyword in Python?

(a) Var (b) if (c) val (d) print

17. Which of these is a correct variable name?

(a) my-var (b) my_var (c) my var (d) 2var

18. Which operator is used for modulus operation?

(a) / (b) % (c) // (d) **

19. What is the output of print(10%3)?

(a) 3 (b) 0 (c) 1 (d) 2

20. Comments in Python are ignored by:

(a) Interpreter (b) User (c) Editor (d) Compiler

21. What is the result of 2 * 3 ** 2?

(a) 36 (b) 18 (c) 12 (d) 9

22. Which statement will cause an error?

(a) print('Hello') (b) input('Enter:') (c) print('10+5') (d) print('Hello)

23. Which of the following is used to combine strings?


(a) * (b) + (c) % (d) /

24. The default data type returned by input() is:

(a) integer (b) float (c) string (d) list

25. A syntax error is detected at:

(a) Run time (b) Compile time (c) Both (d) Never

26. How many types of errors in Python?

(a) 1 (b) 2 (c) 3 (d) 4

27. Which one is a run-time error?

(a) ZeroDivisionError (b) SyntaxError (c) TypoError (d) NameError

28. Which is a relational operator?

(a) and (b) or (c) == (d) not

29. Which of the following is not a logical operator?

(a) and (b) or (c) not (d) ==

30. Output of print(3==3)?

(a) True (b) False (c) 1 (d) 0

31. What will be the result of 5>3 and 2<4?

(a) True (b) False (c) 5 (d) 2

32. Which function is used to find the type of a variable?

(a) type() (b) typeof() (c) typename() (d) findtype()

33. Which of the following is invalid?

(a) 12abc (b) _abc (c) abc12 (d) abc

34. What is the output of bool('')?

(a) True (b) False (c) Error (d) None

35. Which is not a valid data type?


(a) int (b) float (c) double (d) str

36. How to print multiple values in Python?

(a) Separate with comma (b) Separate with plus (c) Separate with slash (d) None

37. What is the result of 5+3*2?

(a) 11 (b) 16 (c) 8 (d) 10

38. '//' operator in Python is called:

(a) floor division (b) division (c) modulus (d) integer division

39. What is the value of 10%2?

(a) 0 (b) 1 (c) 2 (d) 10

40. Which of the following are strings?

(a) 'hello' (b) "hello" (c) Both (d) None

41. What is the output of print(2**3**2)?

(a) 512 (b) 64 (c) 729 (d) 256

42. Which is the assignment operator?

(a) == (b) = (c) != (d) =>

43. Which of the following is not a comparison operator?

(a) == (b) != (c) >= (d) and

44. How will you get integer division?

(a) / (b) // (c) % (d) *

45. Python is case sensitive when dealing with identifiers.

(a) True (b) False (c) Sometimes (d) Depends

46. What will be the output of print(4**0.5)?

(a) 2 (b) 4 (c) 8 (d) 16

47. Which is a valid Python variable?


(a) my-var (b) my_var (c) my var (d) 1var

48. In Python, comments start with:

(a) * (b) // (c) # (d) !

49. What is the result of 2+3*2/4?

(a) 3.5 (b) 4 (c) 5 (d) 6

50. The data type of input() is always:

(a) int (b) float (c) string (d) depends

Answer Key

1(b)

2(b)

3(b)

4(b)

5(b)

6(b)

7(b)

8(b)

9(b)

10(b)

11(b)

12(b)

13(b)

14(a)

15(b)

16(b)
17(b)

18(b)

19(d)

20(a)

21(b)

22(d)

23(b)

24(c)

25(b)

26(c)

27(a)

28(c)

29(d)

30(a)

31(a)

32(a)

33(a)

34(b)

35(c)

36(a)

37(a)

38(d)

39(a)

40(c)

41(a)

42(b)
43(d)

44(b)

45(a)

46(a)

47(b)

48(c)

49(a)

50(c)

You might also like