600 TRULY UNIQUE - CLEAN SMART WORK - NO EXAM NAME ON QUESTIONS - Plausible Options - Answer Letter Only - Randomized A/B/C/D
1. What is string concatenation vs interpolation? (Consider example with value 93)
A. No string operations Python
B. Concatenation joins strings with + interpolation inserts variables into string using f-string or format
C. Concatenation inserts variables interpolation joins only reversed
D. No difference concatenation interpolation
Answer: B
Rationale: Concatenation joins strings with + interpolation inserts variables into string using f-string or format
2. What is boolean logic AND OR NOT truth table? [Variant 8889]
A. AND OR NOT same
B. No boolean logic Python
C. AND true if both true OR true if one true NOT inverts true false
D. AND true if one true OR both reversed
Answer: C
Rationale: AND true if both true OR true if one true NOT inverts true false
3. What is type casting int('5') vs str(5)? (Consider example with value 73)
A. Casting not needed
B. int converts to string str to int reversed
C. Type casting converts between types int converts string to integer str converts integer to string
D. No casting Python
Answer: C
Rationale: Type casting converts between types int converts string to integer str converts integer to string
4. What is difference between compiled and interpreted language? (Consider example with value 1)
A. Compiled executed line by line interpreted before
B. Compiled language translated to machine code before execution interpreted executed line by line runtime translation
C. No difference compiled interpreted
D. Both compiled and interpreted same execution
Answer: B
Rationale: Compiled language translated to machine code before execution interpreted executed line by line runtime translation
5. What data type is 3.14 vs 3 vs 'hello' vs True? (Consider example with value 4)
A. No data types Python
B. 3.14 float decimal 3 int integer hello string text True boolean logical
C. All types same int
D. 3.14 int 3 float reversed
Answer: B
Rationale: 3.14 float decimal 3 int integer hello string text True boolean logical
6. What is string concatenation vs interpolation? (Consider example with value 41)
A. Concatenation joins strings with + interpolation inserts variables into string using f-string or format
B. Concatenation inserts variables interpolation joins only reversed
C. No difference concatenation interpolation
D. No string operations Python
Answer: A
Rationale: Concatenation joins strings with + interpolation inserts variables into string using f-string or format
7. What is pseudocode vs flowchart? (Consider example with value 8)
A. Pseudocode graphical flowchart text reversed
B. No pseudocode flowchart
C. Both same pseudocode flowchart
D. Pseudocode plain language steps flowchart graphical symbols diamonds rectangles arrows
Answer: D
Rationale: Pseudocode plain language steps flowchart graphical symbols diamonds rectangles arrows
8. What does append vs extend do in Python list? [Variant 1064]
A. Append iterates extend single item reversed
B. No append extend Python
C. Append adds single element as one item extend iterates and adds each element from iterable
D. Append and extend same
Answer: C
,Rationale: Append adds single element as one item extend iterates and adds each element from iterable
9. What is variable scope local vs global? (Consider example with value 13)
A. No scope difference
B. Local scope variable accessible only within function block global scope accessible throughout program
C. Local accessible throughout global only within function reversed
D. Local same as global always
Answer: B
Rationale: Local scope variable accessible only within function block global scope accessible throughout program
10. What does len() function do? (Consider example with value 40)
A. len returns number of items in sequence list string dict
B. No len function Python
C. len returns sum of items
D. len returns last item
Answer: A
Rationale: len returns number of items in sequence list string dict
11. What does len() function do? [Variant 9614]
A. len returns last item
B. len returns sum of items
C. len returns number of items in sequence list string dict
D. No len function Python
Answer: C
Rationale: len returns number of items in sequence list string dict
12. What is function to calculate factorial using recursion? (Consider example with value 32)
A. Recursion only iterative
B. No base case recursion
C. Recursion loop only no self call
D. Recursion function calls itself base case n==0 return 1 else return n * factorial(n-1)
Answer: D
Rationale: Recursion function calls itself base case n==0 return 1 else return n * factorial(n-1)
13. What is difference between syntax error vs logic error vs runtime error? (Consider example with value 1)
A. Syntax error violates language grammar logic error wrong algorithm runtime error exception during execution
B. Logic error grammar error only
C. All errors same syntax logic runtime
D. No syntax error Python
Answer: A
Rationale: Syntax error violates language grammar logic error wrong algorithm runtime error exception during execution
14. What is list vs tuple vs dictionary vs set in Python? (Consider example with value 59)
A. All data structures same
B. List immutable tuple mutable reversed
C. No difference list tuple dict set
D. List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
Answer: D
Rationale: List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
15. What is algorithm complexity Big O O(n) O(n^2) O(1)? (Consider example with value 53)
A. Big O describes growth rate O(1) constant O(n) linear O(n^2) quadratic nested loops
B. O(n) constant O(1) linear reversed
C. No complexity Big O Python
D. Big O constant always
Answer: A
Rationale: Big O describes growth rate O(1) constant O(n) linear O(n^2) quadratic nested loops
16. What data type is 3.14 vs 3 vs 'hello' vs True? (Consider example with value 52)
A. No data types Python
B. All types same int
C. 3.14 int 3 float reversed
D. 3.14 float decimal 3 int integer hello string text True boolean logical
Answer: D
Rationale: 3.14 float decimal 3 int integer hello string text True boolean logical
,17. What is modulus operator % used for? [Variant 4741]
A. Modulus returns percentage
B. No modulus operator Python
C. Modulus returns quotient division
D. Modulus % returns remainder of division used to check even odd divisibility
Answer: D
Rationale: Modulus % returns remainder of division used to check even odd divisibility
18. What does break vs continue do in loop? (Consider example with value 34)
A. No break continue Python
B. Both same break continue
C. Break exits loop entirely continue skips current iteration goes to next iteration
D. Break skips iteration continue exits loop reversed
Answer: C
Rationale: Break exits loop entirely continue skips current iteration goes to next iteration
19. What does input() function return? (Consider example with value 57)
A. Input no return value
B. Input reads user input from console always returns string type requires casting for numbers
C. Input returns integer always
D. Input returns boolean
Answer: B
Rationale: Input reads user input from console always returns string type requires casting for numbers
20. What is parameter vs argument? (Consider example with value 74)
A. Parameter variable in function definition argument actual value passed when calling function
B. No parameters arguments Python
C. Parameter actual value argument variable reversed
D. Parameter and argument same no difference
Answer: A
Rationale: Parameter variable in function definition argument actual value passed when calling function
21. What is list vs tuple vs dictionary vs set in Python? (Consider example with value 54)
A. List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
B. All data structures same
C. List immutable tuple mutable reversed
D. No difference list tuple dict set
Answer: A
Rationale: List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
22. What is modulus operator % used for? [Variant 1894]
A. Modulus % returns remainder of division used to check even odd divisibility
B. No modulus operator Python
C. Modulus returns percentage
D. Modulus returns quotient division
Answer: A
Rationale: Modulus % returns remainder of division used to check even odd divisibility
23. What is list vs tuple vs dictionary vs set in Python? [Variant 8082]
A. All data structures same
B. No difference list tuple dict set
C. List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
D. List immutable tuple mutable reversed
Answer: C
Rationale: List ordered mutable [1,2] tuple ordered immutable (1,2) dict key-value {a:1} set unordered unique {1,2}
24. What does len() function do? (Consider example with value 28)
A. len returns number of items in sequence list string dict
B. No len function Python
C. len returns last item
D. len returns sum of items
Answer: A
Rationale: len returns number of items in sequence list string dict
25. What does append vs extend do in Python list? (Consider example with value 100)
, A. Append adds single element as one item extend iterates and adds each element from iterable
B. Append and extend same
C. No append extend Python
D. Append iterates extend single item reversed
Answer: A
Rationale: Append adds single element as one item extend iterates and adds each element from iterable
26. What is difference between syntax error vs logic error vs runtime error? (Consider example with value 5)
A. Syntax error violates language grammar logic error wrong algorithm runtime error exception during execution
B. All errors same syntax logic runtime
C. No syntax error Python
D. Logic error grammar error only
Answer: A
Rationale: Syntax error violates language grammar logic error wrong algorithm runtime error exception during execution
27. What does break vs continue do in loop? (Consider example with value 42)
A. Break exits loop entirely continue skips current iteration goes to next iteration
B. No break continue Python
C. Both same break continue
D. Break skips iteration continue exits loop reversed
Answer: A
Rationale: Break exits loop entirely continue skips current iteration goes to next iteration
28. What is modulus operator % used for? (Consider example with value 48)
A. No modulus operator Python
B. Modulus returns percentage
C. Modulus returns quotient division
D. Modulus % returns remainder of division used to check even odd divisibility
Answer: D
Rationale: Modulus % returns remainder of division used to check even odd divisibility
29. What does len() function do? [Variant 4830]
A. No len function Python
B. len returns last item
C. len returns sum of items
D. len returns number of items in sequence list string dict
Answer: D
Rationale: len returns number of items in sequence list string dict
30. What data type is 3.14 vs 3 vs 'hello' vs True? (Consider example with value 46)
A. No data types Python
B. All types same int
C. 3.14 int 3 float reversed
D. 3.14 float decimal 3 int integer hello string text True boolean logical
Answer: D
Rationale: 3.14 float decimal 3 int integer hello string text True boolean logical
31. What does break vs continue do in loop? (Consider example with value 15)
A. Both same break continue
B. Break exits loop entirely continue skips current iteration goes to next iteration
C. No break continue Python
D. Break skips iteration continue exits loop reversed
Answer: B
Rationale: Break exits loop entirely continue skips current iteration goes to next iteration
32. What does break vs continue do in loop?
A. Break skips iteration continue exits loop reversed
B. No break continue Python
C. Break exits loop entirely continue skips current iteration goes to next iteration
D. Both same break continue
Answer: C
Rationale: Break exits loop entirely continue skips current iteration goes to next iteration
33. What is string concatenation vs interpolation? (Consider example with value 21)
A. Concatenation inserts variables interpolation joins only reversed