- Python was created by
a. Denis Ritchie
b. Richard Stallman
c. Guido Van Rossum
d. Larry Page
Show Answer
c. Guido Van Rossum
- Python is mostly used in
a. Web Development
b. Big Data and AI
c. Scientific Computing
d. All of above
Show Answer
d. All of above
- Python is ____________ language
a. Interpreted
b. Complied
c. Both Interpreted and Compiled
d. None of the above
Show Answer
c. Both Interpreted and Compiled
- Python Shell is basically a
a. Python Interpreter
b. Python Compiler
c. Python Debugger
dPython Developer
Show Answer
a. Python Interpreter
- Which of the following symbol indicates Python prompt in Python Shell
a. >
b. >>
c. >>>
d. >>>>
Show Answer
c. >>>
- Using Python Interpreter one can execute python program in
a. Interactive mode
b. Script Mode
c. Both
d. None of the above
Show Answer
c. Both
- We can write and save python code in
a. Interactive mode
b. Script Mode
c. Both
d. None of the above
Show Answer
b. Script Mode
- Select the correct statement
i. In interactive mode we can save python code for future use.
ii. Script mode is more convenient for testing single line code for instant execution
a. i true, ii false
b. i false, ii true
c. Both are true
d. Both are false
Show Answer
d. Both are false
- A python program is called
a. Module
b. Package
c. Program
d. Namespace
Show Answer
a. Module
- Python program files are stored with the extension of
a. .pt
b. .py
c. .pyt
d. .pty
Show Answer
b. .py
- In Python IDLE, IDLE abbreviates
a. Integrated Development and Linear Environment
b. Integrated Development and Learning Environment
c. International Development and Learning Environment
d. International Development and Linear Environment
Show Answer
b. Integrated Development and Learning Environment
- Which of the following is NOT correct statement about Python?
a. Python is not case sensitive
b. Python is Interpreted language
c. Python dynamically typed language
d. Python is easy to read as it does not uses semicolon, brackets
Show Answer
a. Python is not case sensitive
- The difference between Identifier and Keyword is
a. Identifiers are system defined and Keywords are user defined
b. Identifiers only contains alphabets and Keyword can contain alphabets, digits or underscore
c. Identifiers identifies the name of entity and Keyword specify the type of entity
d. None of above
Show Answer
c. Identifiers identifies the name of entity and Keyword specify the type of entity
- Which is NOT true about Identifier (variable) naming conventions in python
a. Identifier cannot start with a digit.
b. It can be of any length.
c. It should not be a keyword or reserved word
d. We can use any special symbols in identifiers.
Show Answer
b. It can be of any length.
d. We can use any special symbols in identifiers.
- In Python, a single line comment starts with
a. //
b. /*
c. #
d. ##
Show Answer
c. #
- Select the correct statement
i. in Python, Comments are not executed by interpreter.
ii. variables must always be assigned values before they are used in the program
a. i true, ii false
b. I false, ii true
c. Both are true
d. Both are false
Show Answer
c. Both are true
- Which of the following is not a python keyword?
a. def
b. for
c. true
d. and
Show Answer
c. true
- Select the correct statement to create new variables and assign specific values to them.
a. Acc name = Surya
b. Acc name = ‘Surya’
c. Acc_name = “Surya”
d. Acc_name = Surya
Show Answer
b. Acc name = ‘Surya’
c. Acc_name = “Surya”
- Which of the following is correct variable name?
a. acc@no
b. acc no
c. acc_no
d. #acc_no
Show Answer
c. acc_no
- Which of the following is incorrect variable name?
a. Roll_no
b. Roll-no
c. Rollno
d. Rollno1
Show Answer
b. Roll-no
- Which of the following is invalid variable name?
a. _degree
b. degree20
c. degree$
d. Degree
Show Answer
c. degree$
- Which of the following is valid keyword?
a. do
b. elseif
c. false
d. break
Show Answer
d. break
- the code which is used to add remark in the source code and have no effect when program is executed
a. statement
b. comment
c. block
d. data type
Show Answer
b. comment
- In python, multiple line comment is written as
a. /*….*/
b. //….//
c. /#….#/
d. “”….””
Show Answer
c. /#….#/
- Python uses __________ to define or highlight a block of code
a. parenthesis
b. braces
c. quotation
d. indentation
Show Answer
d. indentation