0% found this document useful (0 votes)
3K views4 pages

Getting Started With Python Class 11 MCQ

Uploaded by

BARNA BASS
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)
3K views4 pages

Getting Started With Python Class 11 MCQ

Uploaded by

BARNA BASS
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

Getting Started with Python Class 11 MCQ

1. An ordered set of instructions to be executed by a computer to carry out a specific task is


called a ___________.
a. Program
b. Instruction
c. Code
d. None of the above
Hide Answer ⟵
a. Program
2. Computers understand the language of 0s and 1s which is called __________.
a. Machine language
b. Low level language
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
3. A program written in a high-level language is called _________.
a. Language
b. Source code
c. Machine code
d. None of the above
Hide Answer ⟵
b. Source code
4. An interpreter read the program statements _________.
a. All the source at a time
b. One by one
c. Both a) and b)
d. None of the above
Hide Answer ⟵
b. One by one
5. Python is a __________.
a. Low level language
b. High level language
c. Machine level language
d. All of the above
Hide Answer ⟵
b. High level language
6. Python is __________.
a. Open source language
b. Free language
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
7. Python support __________.
a. Compiler
b. Interpreter
c. Assembler
d. None of the above
Hide Answer ⟵
b. Interpreter
8. Python programs are ___________.
a. Easy to understand
b. Clearly defined syntax
c. Relatively simple structure
d. All of the above
Hide Answer ⟵
d. All of the above
9. Python is _________.
a. Case – sensitive
b. Non case – sensitive
c. Both a) and b)
d. None of the above
Hide Answer ⟵
a. Case – sensitive
10. Python is platform independent, meaning ___________.
a. It can run various operating systems
b. It can run various hardware platforms
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
11. Python uses indentation for __________.
a. Blocks
b. Nested Blocks
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
12. To write and run (execute) a Python program, we need to have a ___________.
a. Python interpreter installed on the computer
b. We can use any online python interpreter
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
13. The interpreter is also called python _______.
a. Shell
b. Cell
c. Program
d. None of the above
Hide Answer ⟵
a. Shell
14. To execute the python program we have to use __________.
a. Interactive mode
b. Script mode
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
15. __________ allows execution of individual statements instantaneously.
a. Interactive mode
b. Script mode
c. Both a) and b)
d. None of the above
Hide Answer ⟵
a. Interactive mode
16. _________allows us to write more than one instruction in a file called Python source
code.
a. Interactive mode
b. Script mode
c. Both a) and b)
d. None of the above
Hide Answer ⟵
b. Script mode
17. To work in the interactive mode, we can simply type a Python statement on the ________
prompt directly.
a. >>>
b. >>
c. >
d. None of the above
Hide Answer ⟵
a. >>>
18. In the script mode, we can write a Python program in a ________, save it and then use
the interpreter to execute it.
a. Prompt
b. File
c. Folder
d. All of the above
Hide Answer ⟵
b. File
19. By default the python extension is __________.
a. .py
b. .ppy
c. .pp
d. .pyy
Hide Answer ⟵
a. .py

20. __________ are reserved words in python.


a. Keyword
b. Interpreter
c. Program
d. None of the aboveShow Answer ⟶
21. The rules for naming an identifier in Python are ________.
a. Name should begin with an uppercase, lowercase or underscore
b. It can be of any length
c. It should not be a keyword
d. All of the above
Hide Answer ⟵
d. All of the above
22. To define variables in python _______ special symbols is not allowed.
a. @
b. # and !
c. $ and %
d. All of the above
Hide Answer ⟵
d. All of the above
23.A variable in a program is uniquely identified by a name __________.
a. Identifier
b. Keyword
c. Code
d. None of the above
Hide Answer ⟵
a. Identifier
24. Variable in python refers to an ________.
a. Keyword
b. Object
c. Alphabets
d. None of the above
Hide Answer ⟵
b. Object
25. The variable message holds string type value and so its content is assigned within
_________.
a. Double quotes “”
b. Single quotes ”
c. Both a) and b)
d. None of the above
Hide Answer ⟵
c. Both a) and b)
26. _________ must always be assigned values before they are used in expressions.
a. Keyword
b. Variable
c. Code
d. None of the above
Hide Answer ⟵
b. Variable
27. ___________ are used to add a remark or a note in the source code.
a. Keyword
b. Source
c. Comment
d. None of the above
Hide Answer ⟵
c. Comment
28. __________ are not executed by a python interpreter.
a. Keyword
b. Source
c. Comment
d. None of the above
Hide Answer ⟵
c. Comment
29. In python comments start from _______.
a. #
b. @
c. %
d. $
Hide Answer ⟵
a. #
30. Python treats every value or data item whether numeric, string, or other type (discussed in
the next section) as an _________.
a. Object
b. Variable
c. Keyword
d. None of the above
Hide Answer ⟵
a. Object

You might also like