Q:1. What is the first step in write a program?
1.Run Code
2.Write Code
3.Edit Code
4.Check the Code
Answer:-2.Write Code
Q:2. Logical solution is a ____and clear _____procedure to solve the problem, known as _____.
1.problem description , step-by-step , flowchart
2.expression , assignment statement , identifier
3.finite , step-by-step , Algorithm
4.finite , assignment statement , algorithm
Answer:- 3.finite , step-by-step , Algorithm
Q:3. Python is a/an___________ language (unlike C, C++, Java).
1.Logical programming
2.Interpreted programming
3.Compiled programming
4.Complex programming
Answer:- 2.Interpreted programming
Q:4. What is the extension of a python file?
1..pi
2..pyt
3..py
4..ptn
Answer:- .py
Q:5. In Python variables can be thought of as ______.
1.labels
2.containers
3.boxes
4.tumblers'
Answer:- 1.labels
Q:6. Which function is used to get a string in Title Cases (First letter of each word in capital) ?
1.pint()
2.title()
3.strip()
4.lstrip()
Answer:- 2.title()
Q:7. Which function is used to get rid of the blank spaces on the left?
1.strip()
2.left()
3.rstrip()
4.lstrip()
Answer:- 4.lstrip()
Q:8. A Python Program is a sequence of ___ and ___.
1.data and information
2.classes and objects
3.strings and arrays
4.definitions and commands
Answer:-4.definitions and commands
Q:9. What will be the output of : type(3.5) ?
1.class double
2.class str
3.class int
4.class 'float'
Answer:- 4.class 'float'
Q:10. What will be the output of : int(2.5) ?
1.1
2.3
3.2
4.2.5
Answer:- 3.2
Q:11. Any input that you take in Python is of ___ data type.
1.str
2.int
3.float
4.char
Answer:- 1.str
Q:12. What is the output of the following : 4//5 ?
1.1
2.0.8
3.0
4.8
Answer:- 3.0
Q:13. What will be the value stored in y? : x, y, z = 1, 2, 3
1.1
2.2
3.3
4.None of these
Answer:- 2
Q:14. Which of the following is a valid identifier or variable?
1.well&1
2.well 1
3.well_1
4.@well
Answer:- 3.well_1
0 Comments