Docsity

INTRODUCTION TO PYTHON PROGRAMMING AND DATA STRUCTURES CERTIFICATION TEST PAPER VERIFIED Q, Exams of Object Oriented Programming

Toggle sidebar
bg1
INTRODUCTION TO PYTHON
PROGRAMMING AND DATA STRUCTURES
CERTIFICATION TEST PAPER VERIFIED
QUESTIONS AND SOLUTIONS GRADED A+
โ—โ— A popular programming language that is easy to read and understand.
It is typically used in automation, data analysis, and web development.
Answer: Python
โ—โ— Informational statements that are not executed when a program is
run.
Answer: Comments
โ—โ— The process of locating and correcting errors or bugs in a program
that prevent it from functioning properly.
Answer: Debugging
โ—โ— The set of rules outlining the grammar, punctuation, and structure of
a language.
Answer: Syntax
โ—โ— A placeholder that stores a piece of data.
Answer: Variable
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download INTRODUCTION TO PYTHON PROGRAMMING AND DATA STRUCTURES CERTIFICATION TEST PAPER VERIFIED Q and more Exams Object Oriented Programming in PDF only on Docsity!

INTRODUCTION TO PYTHON

PROGRAMMING AND DATA STRUCTURES

CERTIFICATION TEST PAPER VERIFIED

QUESTIONS AND SOLUTIONS GRADED A+

โ—โ— A popular programming language that is easy to read and understand. It is typically used in automation, data analysis, and web development. Answer: Python โ—โ— Informational statements that are not executed when a program is run. Answer: Comments โ—โ— The process of locating and correcting errors or bugs in a program that prevent it from functioning properly. Answer: Debugging โ—โ— The set of rules outlining the grammar, punctuation, and structure of a language. Answer: Syntax โ—โ— A placeholder that stores a piece of data. Answer: Variable

โ—โ— Categories of variables that specify the type of data being stored. In Python, there are four main types: strings, integers, booleans, and floats. Answer: Data types โ—โ— A sequence of characters or words that are surrounded by double quotation marks (" "). Answer: String โ—โ— A data type that can store positive and negative whole numbers. Answer: Integer โ—โ— A data type that can store values of true or false in order to perform logical operations. Answer: Boolean โ—โ— A data type that can store numbers with fractional or decimal components. Answer: Float โ—โ— The process of combining strings into a single string using the + operator. Answer: Concatenation

โ—โ— Data that is generated or displayed by a computer. Answer: Output โ—โ— Any device that sends signals or information to a computer to produce output. Answer: Input Device โ—โ— Any device that displays the result(s) of input. Answer: Output Device โ—โ— The process of converting a variable's data type to another type. Answer: Typecasting โ—โ— Symbols used to perform basic mathematical operations (+, - , *, /, and %) Answer: Arithmetic Operators โ—โ— An arithmetic operator symbolized by a percentage sign (%) that returns the remainder of a division statement. Answer: Modulo โ—โ— The block of code in a conditional executed if a new condition is true and all preceding conditions are false.

Answer: Elif Statement โ—โ— The block of code in a conditional executed if all conditions are false. Answer: Else statement โ—โ— A group of connected statements that work together for a specific purpose in a program. Answer: Block of Code โ—โ— The leading whitespace (spaces and tabs) before any statement in Python. Statements with the same indentation are considered a single block of code. Answer: Indentation โ—โ— Characters that are used for spacing. In Python, these characters are spaces and tabs. Answer: Whitespace โ—โ— A data structure in Python used to store a collection of values. Answer: List โ—โ— A collection of previously written code; composed of modules.

โ—โ— Containers used to store a collection of related data. Answer: Data Structures โ—โ— A loop that executes a block of code, once for each item in a list, dictionary, or string. Answer: For loop โ—โ— The process of looping through items in a sequence, like a string, a list, or a dictionary. Answer: Iteration โ—โ— A built-in function that is often applied to for loops to repeat a specific block of code a specified number of times. Answer: Range() โ—โ— Reserved words that have predefined meanings and applications that cannot be used to name variables or functions. Answer: Keyword โ—โ— Computers or machines that are programmed to think and learn like humans. Answer: Artificial Intelligence

โ—โ— A loop where the condition is never false, which causes the loop to continue indefinitely. Answer: Infinite Loop โ—โ— A loop that executes a set of statements while a condition is true. Answer: While Loop โ—โ— A function already defined in Python that can be called. Answer: Built-in function โ—โ— A block of code that can be used and reused to execute a specific action. Answer: Function โ—โ— A function that contains a return statement and returns a value when called. Answer: Return Function โ—โ— A function that is defined by a user with the keyword def followed by the function name. Answer: User-defined Function

โ—โ— A search that divides a list in half during each iteration of the search until the requested element is found. Answer: Binary Search โ—โ— A search for data from the beginning of a list to the end until the required element is found. Answer: Linear search โ—โ— Systems with the ability to automatically learn and improve from experience without being explicitly programming. Answer: Machine Learning AI โ—โ— Programs that produce pre-defined outcomes that are based on a set of certain rules coded by humans. Answer: Rule-based AI โ—โ— Another name given to data to abbreviate it and improve the readability of code. Answer: Alias โ—โ— A collection of previously written code. Code libraries are composed of modules. Answer: Code Library

โ—โ— A computer model that mimics a real-world process or phenomenon. Answer: Simulation โ—โ— A blueprint that defines the set of attributes and methods for a particular category of object Answer: Class โ—โ— A specific instance of a class that shares the same attributes and methods as the class it was created with Answer: Object โ—โ— The properties that all objects in a given class share. Answer: Attributes โ—โ— Functions in a class that can perform specific actions Answer: Methods โ—โ— A programming model that is centered around the creation of classes and objects. Answer: Object-Oriented Programming โ—โ— A special method used to build objects from a class with certain attributes and methods.

โ—โ— A first or early version of a product from which other versions are developed; utilized to test a product or process and gather feedback Answer: Prototype โ—โ— Code that can be easily understood by anyone reading it Answer: Clean Code โ—โ— A method used to convert data into an alternate format or code by transforming information to hide its meaning Answer: Encryption โ—โ— The process of unscrambling a message to read the plain text Answer: Decryption โ—โ— The study of encryption techniques that allow for secure communication Answer: Cryptography โ—โ— The original message before it has been encrypted Answer: Plaintext โ—โ— The encrypted or scrambled message

Answer: Ciphertext โ—โ— A tool used to encrypt and decrypt messages Answer: Cipher โ—โ— A set of coded commands that enables computer applications or devices to communicate with each other and exchange information. Answer: Application Programming Interface โ—โ— A two-dimensional data structure similar to a table with rows and columns, which is created with the Pandas library. Answer: DataFrame โ—โ— The digital location or unique web address for resources on a server Answer: Endpoint โ—โ— A text format that is language-independent and is used for storing and transmitting data. Answer: JavaScript Object Notation (JSON) โ—โ—