Python is a __ language.
a) Low-level
b) Machine
c) High-level
d) Assembly
IDLE stands for:
a) Integrated Data Learning Environment
b) Integrated Development Learning Environment
c) Integrated Development Environment
d) Internal Development Environment
The extension of Python file is:
a) .pt
b) .py
c) .python
d) .exe
Interactive Mode is used for:
a) Writing long programs
b) Immediate execution of commands
c) Saving files
d) Creating modules
Script Mode is mainly used for:
a) Short calculations
b) Immediate output
c) Writing lengthy programs
d) Printing messages
A variable is used to:
a) Print data
b) Store data
c) Delete data
d) Run program
Which symbol is used for assignment?
a) ==
b) =
c) !=
d) :
Which of the following is a valid variable name?
a) 1name
b) emp_code
c) student name
d) @total
Which of the following is invalid?
a) total_marks
b) age1
c) 10value
d) value10
Variable names are:
a) Case-insensitive
b) Case-sensitive
c) Always capital
d) Always small
Which cannot be used as a variable name?
a) age
b) total
c) else
d) marks
🔵 MCQs – Data Types
Which of the following is an integer?
a) 3.14
b) -25
c) "45"
d) 5.0
Which of the following is a float?
a) 10
b) -8
c) 6.25
d) "7.5"
A string is written inside:
a) Brackets
b) Quotes
c) Curly braces
d) Angle brackets
Which of the following is a string?
a) 45
b) 7.8
c) "Hello"
d) -9
int() function is used to convert data into:
a) Float
b) String
c) Integer
d) Boolean
float() function converts data into:
a) Whole number
b) Decimal number
c) Character
d) List
🟡 MCQs – input() Function
The input() function is used to:
a) Display output
b) Take input from user
c) Delete data
d) Save file
By default, input() returns data as:
a) Integer
b) Float
c) String
d) Boolean
To add two numbers correctly using input(), we use:
a) print()
b) int()
c) type()
d) open()
🟡 MCQs – print() Function
The print() function is used to:
a) Take input
b) Display output
c) Save file
d) Exit program
Which character is used for new line?
a) \t
b) \n
c) \b
d) \r
The comma (,) in print() works as a:
a) Operator
b) Separator
c) Variable
d) Keyword
Which of the following will print Hello World?
a) print Hello World
b) print("Hello World")
c) print Hello
d) Hello World
Which key is used to run program in Script Mode?
a) F1
b) F2
c) F5
d) F10
FILL IN THE BLANKS
1. Python programs saved in Script Mode have extension ________.
2. IDLE stands for ________ Development Environment.
3. The symbol used to assign value to a variable is ________.
4. The ________ function is used to display output.
5. The ________ function is used to take input from the user.
6. Variable names must begin with an alphabet or ________.
7. A variable name cannot start with a ________.
8. Python variable names are ________ sensitive.
9. The newline character is written as ________.
[Link] convert a string into integer we use ________ function.
[Link] convert a string into float we use ________ function.
[Link] Mode is used to write ________ programs.
[Link] Interactive Mode, Python gives output ________.
[Link] values in print() can be separated using ________.
15.A ________ represents the type of data stored in a variable.
[Link] data type stores ________ numbers.
[Link] data type stores ________ numbers.
[Link] values are written inside ________ quotes.
[Link] file menu option used to create new file is ________.
20. Run → Run Module or press ________ key to execute program.