(SKOI) EXAM WITH CORRECT ACTUAL
QUESTIONS AND CORRECTLY WELL
DEFINED ANSWERS LATEST ALREADY
GRADED A+
Question 1
What is the correct way to create a variable in Python?
A. var x = 5
B. int x = 5
C. x = 5
D. declare x = 5
✔ Correct Answer: C. x = 5
Explanation:
,Python uses dynamic typing, so you do not need to declare
variable types explicitly. Simply assign a value using =.
Question 2
Which data type is immutable?
A. List
B. Dictionary
C. Set
D. Tuple
✔ Correct Answer: D. Tuple
Explanation:
Tuples cannot be modified after creation, making them
immutable. Lists, sets, and dictionaries are mutable.
Question 3
What does the len() function do?
,A. Converts data type
B. Counts number of items
C. Prints output
D. Deletes data
✔ Correct Answer: B. Counts number of items
Explanation:
len() returns the number of elements in a collection such as
a string, list, or dictionary.
Question 4
Which symbol is used for comments in Python?
A. //
B. <!-- -->
C. #
D. **
, ✔ Correct Answer: C. #
Explanation:
The # symbol is used for single-line comments in Python.
Question 5
What is the output of print(2 ** 3)?
A. 6
B. 8
C. 9
D. 5
✔ Correct Answer: B. 8
Explanation:
** is the exponentiation operator. 2³ = 8.
Question 6