Conceptual Actual Emended Exam Questions
With Reviewed 100% Correct Detailed Answers
Guaranteed Pass!!Current Update
1 1. What data type is the result of type("Hello")?
a) int
b) bool
c) str
d) float
2. What is the output of: print(bool(""))
a) True
b) False
c) Error
d) None
3. Which Python function is used to convert a number to a string?
a) string()
b) str()
c) int()
d) chr()
4. What does print(2 ** 3) output?
a) 6
b) 8
,c) 9
d) 5
5. What is the purpose of input() in Python?
a) Output text
b) Take user input
c) Convert data types
d) Create loops
6. What value does bool(0) return?
a) True
b) False
c) 0
d) Error
7. Which of these is a valid variable name in Python?
a) 2num
b) num_2
c) @num
d) first name
8. What is the output of this code?
python
CopyEdit
print("3" + "4")
a) 7
b) 34
,c) Error
d) 3 + 4
9. What is the default data type returned by input()?
a) int
b) bool
c) str
d) float
10. Which built-in function returns the length of a string?
a) str_len()
b) size()
c) len()
d) length()
11. What does print("Python".upper()) output?
a) python
b) PYTHON
c) Python
d) error
12. What symbol is used for comments in Python?
a) //
b) <!-- -->
c) #
d) %
13. What will this code output?
, python
CopyEdit
x = "Hello"
print(x[1])
a) e
b) H
c) l
d) o
14. Which of these creates a float value?
a) x = 3
b) x = "3.0"
c) x = 3.0
d) x = int(3)
15. Which statement is used to make decisions in Python?
a) switch
b) if
c) loop
d) case
16. How do you begin a multi-line comment in Python?
a) Triple quotes (''')
b) //
c) **
d) --