PYTHON -DATA SCIENCE TEST WITH VERIFIED SOLUTIONS #12, Exams of Computer Science

PYTHON -DATA SCIENCE TEST WITH VERIFIED SOLUTIONS #12

Typology: Exams

2025/2026

Available from 02/09/2026

YourExamPlug
YourExamPlug 🇿🇦

1.4K documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PYTHON -DATA SCIENCE TEST WITH VERIFIED SOLUTIONS #12
Algorithm - correct answer A set of specific steps for solving a category of problems
Bug - correct answer an error in a program
Comment - correct answer in a program that is meant for other programmers (or anyone
reading the source code) and has no effect on the execution of the program
Token - correct answer basic elements of a language(letters, numbers, symbols)
High-level language - correct answer A programming language like Python that is
designed to be easy for humans to read and write.
Low-level langauge - correct answer A programming language that is designed to be
easy for a computer to execute; also called machine language or assembly language
Print - correct answer A function used in a program or script that causes the Python
interpreter to display a value on its output device.
Runtime error - correct answer An error that does not occur until the program has
started to execute but that prevents the program from continuing.
Semantic error - correct answer An error in a program that makes it do something other
than what the programmer intended.
Semantic - correct answer the meaning of a program
Syntax - correct answer The structure of a program
Syntax error - correct answer An error in a program that makes it impossible to parse —
and therefore impossible to interpret.
String - correct answer contains a string of letters
Variable - correct answer name that refers to a value
Assignment statement - correct answer gives value to a variable
Keyword - correct answer define the language's syntax rules and structure, and they
cannot be used as variable names
Statement - correct answer instruction that the Python interpreter can execute
pf3
pf4
pf5

Partial preview of the text

Download PYTHON -DATA SCIENCE TEST WITH VERIFIED SOLUTIONS #12 and more Exams Computer Science in PDF only on Docsity!

PYTHON -DATA SCIENCE TEST WITH VERIFIED SOLUTIONS

Algorithm - correct answer A set of specific steps for solving a category of problems Bug - correct answer an error in a program Comment - correct answer in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program Token - correct answer basic elements of a language(letters, numbers, symbols) High-level language - correct answer A programming language like Python that is designed to be easy for humans to read and write. Low-level langauge - correct answer A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language Print - correct answer A function used in a program or script that causes the Python interpreter to display a value on its output device. Runtime error - correct answer An error that does not occur until the program has started to execute but that prevents the program from continuing. Semantic error - correct answer An error in a program that makes it do something other than what the programmer intended. Semantic - correct answer the meaning of a program Syntax - correct answer The structure of a program Syntax error - correct answer An error in a program that makes it impossible to parse — and therefore impossible to interpret. String - correct answer contains a string of letters Variable - correct answer name that refers to a value Assignment statement - correct answer gives value to a variable Keyword - correct answer define the language's syntax rules and structure, and they cannot be used as variable names Statement - correct answer instruction that the Python interpreter can execute

Operators - correct answer special tokens that represent computations like addition, multiplication and division Modulus operator - correct answer %, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second Evaluate - correct answer To simplify an expression by performing the operations in order to yield a single value. Int - correct answer A Python data type that holds positive and negative whole numbers Float - correct answer A Python data type which stores floating-point numbers. Floating- point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers Flow of execution - correct answer The order in which statements are executed during a program run. Function - correct answer A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result Fruitful function - correct answer A function that returns a value when it is called. Local variable - correct answer A variable defined inside a function. A local variable can only be used inside its function. Parameters of a function are also a special kind of local variable. Parameter - correct answer A name used inside a function to refer to the value which was passed to it as an argument. Boolean function - correct answer A function that returns a Boolean value. The only possible values of the bool type are False and True. None - correct answer A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument. Block - correct answer A group of consecutive statements with the same indentation. Boolean expression - correct answer An expression that is either true or false. Conditional statement - correct answer A statement that controls the flow of execution depending on some condition. In Python the keywords if, elif, and else are used for conditional statements.

Immutable type - correct answer A compound data type whose elements can NOT be assigned new values. Iteration - correct answer To repeat a section of code. Mutable type - correct answer A compound data type whose elements can be assigned new values. Nested list - correct answer A list that is itself contained within a list. Operator - correct answer A special symbol that represents a simple computation like addition, multiplication, or string concatenation. Pixel - correct answer Smallest addressable element of a picture. Proprioception - correct answer on a robot, internal sensing mechanisms. On a human, a sense of the relative positions of different parts of ones own body. Recursion - correct answer The process of calling the currently executing function. Robot - correct answer mechanism or an artificial entity that can be guided by automatic controls. Sequence - correct answer A data type that is made up of elements organized linearly, with each element accessed by an integer index. Short circuit evaluation - correct answer When a boolean expression is evaluated the evaluation starts at the left hand expression and proceeds to the right, stopping when it is no longer necessary to evaluate Any further to determine the final outcome. Slice - correct answer A copy of part of a sequence specified by a series of indices. Str - correct answer converts to a string Traverse - correct answer To repeat an operation on all members of a set from the start to the end. Argument - correct answer a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function. Integer division - correct answer An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.

Element - correct answer One of the values in a list (or other sequence). The bracket operator selects elements of a list. Lambda - correct answer A piece of code which can be executed as if it were a function but without a name. (It is also a keyword used to create such an anonymous function.) Module - correct answer A file containing definitions and statements Intended to be imported by other programs.