OBJECTIVE ASSESSMENT
ACTUAL EXAM 2025-2026 //
QUESTIONS WITH CORRECT
VERIFIED ANSWERS
<GUARANTEED PASS> Brand New
Version
Programming paradigm - ANSWER a fundamental style or approach to
programming that dictates how tasks should be structured and executed in
each programming language
Local scope - ANSWER refers to variables that are defined and
accessible only within a specific function or block of code in Python
Global scope - ANSWER refers to variables that are defined outside of
functions are are accessible throughout the entire Python script, including
inside functions (unless shadowed by a local variable)
Global keyword - ANSWER used inside a function to indicate that a
variable refers to the global scope, allowing the function to modify the
variable defined outside of it
Imperative/procedural programming - ANSWER a programming
paradigm where the developer writes sequences of instructions that tell
the computer how to perform tasks step by step, using variables, control
structures (like loops and conditionals), and functions or procedures to
organize code
Object-oriented programming (OOP) - ANSWER a programming
paradigm based on the concept of "objects", which bundle data (attributes)
and behavior (methods) together, allowing for modular, reusable, and
organized code through principles like encapsulation, inheritance, and
polymorphism
, Functional programming - ANSWER a programming paradigm that
treats computation as the evaluation of mathematical functions,
emphasizing immutability, pure functions (without side effects), and
higher-order functions to build clean, predictable code
Declarative programming - ANSWER a programming paradigm where
the developer describes what the program should accomplish, rather than
how to do it, focusing on logic, rules, or desired outcomes instead of step-
by-step instructions
Event-driven programming - ANSWER a programming paradigm where
the flow of the program is determined by events-such as user actions,
sensor outputs, or messages from other programs- with code responding
through event handlers or callbacks
Logic programming - ANSWER a programming paradigm based on
formal logic, where programs consist of facts and rules, and computation
is performed through logical inference to answer queries or solve
problems
Def - ANSWER keyword used to define functions
Import - ANSWER a keyword used to include external modules or
libraries into a program, allowing access to additional functions, classes,
and variables defined outside the current file
python your_script.py - ANSWER command prompt to run a python
script
python3 your_script.py - ANSWER command prompt to run a Python3
script
Interactive mode - ANSWER a way of executing code line by line in real
time, typically using the python shell or REPL (read-eval-print loop),
allowing immediate feedback and quick testing of code snippets
REPL (read-eval-print loop) - ANSWER an interactive programming
environment that reads user input, evaluates it, prints the result, and
repeats the process-commonly used for quickly testing and debugging
code
IDE (integrated development environment) - ANSWER a software
application that provides comprehensive tools for coding, including a text
,editor, debugger, complier or interpreter, and other features to streamline
software development
Input() - ANSWER a built-in function that pauses program execution to
get user input from the keyboard and returns it as a string
print() - ANSWER a built-in function that displays text or other output to
the screen
format() - ANSWER a string method used to insert variables or values
into a string by replacing placeholders with specified data in a structured
way
open() - ANSWER a built-in function to open a file for reading, writing,
or appending, and it returns a file object to interact with the file's contents
map() - ANSWER built-in function that applies a function to elements
based on function
filter() - ANSWER built-in function that filters elements based on
function
read() - ANSWER built-in function that reads the entire contents of a file
as a single string
len() - ANSWER built-in function that determines the length of a
sequence
type() - ANSWER built-in function that returns the type of an object
int() - ANSWER built-in function that converts value(s) to integers
float() - ANSWER built-in function that converts value(s) to floats
str() - ANSWER built-in function that converts value(s) to strings
max() - ANSWER built-in function that returns maximum value
min() - ANSWER built-in function that returns minimum value
sum() - ANSWER built-in function that calculates the sum of elements in
a sequence
, abs() - ANSWER built-in function that returns the absolute value of a
number
range() - ANSWER built-in function that generates a sequence of
number
sorted() - ANSWER built-in function returns a sorted list from an
iterable
any() - ANSWER built-in function that checks is any elements in an
iterable are true
all() - ANSWER built-in function that checks that all elements in an
iterable are true
write() - ANSWER built-in function that adds text or data to a file,
overwriting existing content if the file is opened in write mode
dir() - ANSWER built-in function that list the names in the current scope
or attributes of an object
help() - ANSWER built-in function that provides help information about
an object or Python
Code navigation - ANSWER feature provided by IDE that facilitates
easy navigation through large codebases by offering features such as code
folding, code outlining, and quick navigation to definitions
integrated documentation - ANSWER feature provided by IDE that
provides access to documentation for Python libraries and modules
directly within the IDE
code profiling - ANSWER allows developers to analyze code
performance and identify areas for optimization
Analyze the problem, develop algorithm or psuedocode, write code, test
and debug - ANSWER the four-step problem-solving process
Lower camel case - ANSWER a naming convention in which the first
word starts with a lowercase letter and each subsequent word begins with
a capital letter, with no spaces or underscored