Actual Emended Exam Questions With Reviewed 100%
Correct Detailed Answers
Guaranteed Pass!!Current Update
1. Which programming paradigm emphasizes the use of functions and avoids changing
state or mutable data?
A. Imperative
B. Object-Oriented
C. Functional
D. Declarative
2. In which programming paradigm is code organized around objects that contain both
data and behaviors?
A. Procedural
B. Object-Oriented
C. Functional
D. Event-Driven
3. Which paradigm describes what the program should accomplish rather than how to
accomplish it?
A. Declarative
B. Imperative
C. Functional
D. Logic
4. Which programming style is most focused on step-by-step commands that change
program state?
A. Imperative
B. Functional
C. Declarative
D. Logic
5. Which paradigm triggers execution based on user actions or external events?
A. Functional
B. Logic
C. Event-Driven
D. Procedural
, 6. What character is used in Python to indicate a comment?
A. #
B. //
C. /*
D. --
7. What keyword begins a function definition in Python?
A. function
B. defFunc
C. def
D. func
8. Which of the following is a valid variable name in Python?
A. user_name
B. 1st_name
C. @username
D. first-name
9. Which of the following lines correctly defines a function named greet?
A. function greet():
B. def greet():
C. func greet():
D. define greet():
10. How does Python indicate the start of a new code block?
A. Braces {}
B. Indentation
C. Semicolons
D. Square brackets []
11. Which statement is used to repeat a block of code while a condition remains true?
A. for
B. while
C. if
D. switch
12. Which Python keyword is used for decision making?
A. repeat
B. loop