Mod 11 Tech + Flashcards
What is the main advantage of using bytecode?
It can run on any computer with a runtime engine
What should be done before starting to code a program?
Decide what the program should do.
What is the result of the expression !True?
False
How is an array and vector different
An array has a fixed size, while a vector can change size dynamically
What does the term “syntax” refer to in computer programming?
The rules for how to write the language.
Which of the following is NOT a programming language?
HTML
What is the main purpose of query languages?
To get information from databases
What is the main purpose of pseudocode?
To describe what the code will do using plain language
What does a diamond shape in a flowchart indicate?
A decision point
What keyword is used in pseudocode to represent a loop with a condition at its beginning?
While
What is a binary executable file?
A file that can be directly executed by the computer’s processor
Why is code written in assembly language more efficient?
It allows direct access to hardware.
What is sequential flow in a program?
Code that runs in the order it is written
Which number type is similar to a float but can store larger and more precise numbers?
Double
What do you put inside the parentheses when using a function?
The arguments or values the function needs to process
What is a container in programming?
A set of values held by an identifier
Which number type would you use for precise financial calculations?
Fixed-point
If condition A is True and condition B is False, what does the OR operation return?
True
Which of the following is an example of a character variable?
‘7’
What happens when the condition in a While loop is no longer met?
The loop stops running.
What is the purpose of adding comments to your code?
To explain what each part of the code does
What is object-oriented programming (OOP)?
A way to model real-world objects in computer code.
LAB
What is debugging?
Fixing mistakes in code
Which Boolean operation returns True only if both conditions are True?
AND
What is the role of a query in a database search?
To search the database and find matching records
Why are interpreted languages slower than compiled languages?
They translate the code into machine language as it runs
What is a runtime engine?
What is branching in computer programming?
A method to execute a different sequence of instructions based on a condition
What is an escape character used for in a string?
To include special characters in the output
Why is understanding the code important for debugging?
To know what each part is supposed to do
Which programming languages support object-oriented programming (OOP)?
C++ and Python
Which type of loop runs a specific number of times?
For loop
LAB
Why is the planning process important in programming?
It ensures a well-though-out program
What is an array?
A special type of variable that holds many values at once
Which of the following is an example of a floating-point number?
8.02
Which of the following is a loop with a condition at its ending?
Repeat-until
What is encapsulation in object-oriented programming (OOP)?
The technique of keeping variables secure inside a class.