Mod 11 Tech + Flashcards

1
Q

What is the main advantage of using bytecode?

A

It can run on any computer with a runtime engine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What should be done before starting to code a program?

A

Decide what the program should do.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the result of the expression !True?

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is an array and vector different

A

An array has a fixed size, while a vector can change size dynamically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the term “syntax” refer to in computer programming?

A

The rules for how to write the language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is NOT a programming language?

A

HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the main purpose of query languages?

A

To get information from databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the main purpose of pseudocode?

A

To describe what the code will do using plain language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does a diamond shape in a flowchart indicate?

A

A decision point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What keyword is used in pseudocode to represent a loop with a condition at its beginning?

A

While

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a binary executable file?

A

A file that can be directly executed by the computer’s processor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is code written in assembly language more efficient?

A

It allows direct access to hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is sequential flow in a program?

A

Code that runs in the order it is written

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which number type is similar to a float but can store larger and more precise numbers?

A

Double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do you put inside the parentheses when using a function?

A

The arguments or values the function needs to process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a container in programming?

A

A set of values held by an identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which number type would you use for precise financial calculations?

A

Fixed-point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

If condition A is True and condition B is False, what does the OR operation return?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Which of the following is an example of a character variable?

A

‘7’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What happens when the condition in a While loop is no longer met?

A

The loop stops running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the purpose of adding comments to your code?

A

To explain what each part of the code does

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is object-oriented programming (OOP)?

A

A way to model real-world objects in computer code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

LAB

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is debugging?

A

Fixing mistakes in code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Which Boolean operation returns True only if both conditions are True?

A

AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is the role of a query in a database search?

A

To search the database and find matching records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Why are interpreted languages slower than compiled languages?

A

They translate the code into machine language as it runs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q
A

What is a runtime engine?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

What is branching in computer programming?

A

A method to execute a different sequence of instructions based on a condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

What is an escape character used for in a string?

A

To include special characters in the output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Why is understanding the code important for debugging?

A

To know what each part is supposed to do

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Which programming languages support object-oriented programming (OOP)?

A

C++ and Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Which type of loop runs a specific number of times?

A

For loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

LAB

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Why is the planning process important in programming?

A

It ensures a well-though-out program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What is an array?

A

A special type of variable that holds many values at once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Which of the following is an example of a floating-point number?

A

8.02

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Which of the following is a loop with a condition at its ending?

A

Repeat-until

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is encapsulation in object-oriented programming (OOP)?

A

The technique of keeping variables secure inside a class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

What does the relational operator != mean?

A

Is not equal to

41
Q

Why do programmers need to spend a lot of time debugging?

A

They make misakes

42
Q

What is a function in programming?

A

A piece of code that does one specific job

43
Q

What is a class in object-oriented programming (OOP)?

A

A blueprint or template for creating objects.

44
Q

A blueprint or template for creating objects.

A

To convert the code into machine language

45
Q

To convert the code into machine language

A

Because they are not part of the executable code

46
Q

Which symbol is used to show the logical flow of the program in a flowchart?

A

Arrow

47
Q

Which type of loop keeps running as long as a certain condition is met?

A

While loop

48
Q

What is the main purpose of a flowchart in programming?

A

To show the flow (sequence) of logic in a program

49
Q

In what areas is assembly language still used today?

A

Specialized areas

50
Q

What is a disadvantage of compiled programs?

A

They need to be rewritten and recompiled for different platforms

51
Q

What is a programming language?

A

A set of instructions programmers use to write code.

52
Q

What does it mean for an array to be multidimensional?

A

It can hold arrays within arrays.

53
Q

What is another term for interpreted languages?

A

Scripting languages

54
Q

What does the computer do after finding the records that match your search?

A

It organizes them into a nice-looking report

55
Q

LAB

A
56
Q

LAB

A
57
Q

What are properties in a class?

A

Attributes that objects can have.

58
Q

Which of the following is an example of a string?

A

Hello World

59
Q

What is assembly language?

A

A low-level programming language

60
Q

What is a variable in a computer program?

A

A container that holds data for use later

61
Q

What is a loop in programming?

A

A sequence of instructions that is executed repeatedly.

62
Q

What happens when you enter a number as a character?

A

You cannot perform math operations with it.

63
Q

What helps programmers interact with and analyze how the program behaves?

A

Debugging Tools

64
Q

What does a conditional flow use to make decisions in a program?

A

If-then-else statements

65
Q

What is the first step in fixing errors in code?

A

Finding and repeating the problem

66
Q

What does SQL stand for?

A

Structured Query Language

67
Q

In a flowchart, what does a parallelogram represent?

A

Input or output

68
Q

What is an object in object-oriented programming (OOP)?

A

A specific model built from a class.

69
Q

What is a character in programming?

A

A single letter, symbol, or number

70
Q

What type of value can a Boolean variable store?

A

True or False

71
Q

What type of language adds tags to text?

A

Markup language

72
Q

What is a constant in a computer program?

A

A value that never changes

73
Q

What is the purpose of using functions in programming?

A

To avoid repeating the same code

74
Q

What is a function call in programming?

A

What is a function call in programming?

75
Q

Who created the first computer program?

A

Ada Lovelace

76
Q

Which symbol represents the Logical AND operation in pseudocode?

A

&&

77
Q

What is the main purpose of adding comments to a program?

A

To explain different parts of the program

78
Q

Which of the following is a string?

A

Hello World

79
Q

What is bytecode?

A

A low-level language that is interpreted by a runtime engine

80
Q

What does an array store?

A

A collection of variables of the same type

81
Q

What is the process of making a compiled program work on different platforms called?

A

Porting

82
Q

What is one advantage of interpreted languages?

A

They are platform-independent.

83
Q

LAB

A
84
Q

In pseudocode, what does the symbol || represent?

A

Logical OR

85
Q

What does the XOR operation return if both conditions are True?

A

False

86
Q

Which of the following lists two interpreted languages?

A

JavaScript and Ruby

87
Q

Which of the following is an example of an integer?

A

23

88
Q

What is an interpreted language?

A

A language that runs instructions in the source code whenever you run the application

89
Q

What is an integer in programming?

A

A whole number, either positive or negative, without a decimal or fraction.

90
Q

What does a function return after it runs?

A

A vaule

91
Q

What type of variable is used to store the value True or False?

A

Boolean

92
Q

Why are compiled languages often used for resource-intensive programs like high-end video games?

A

Because they run quickly and efficiently

93
Q

What makes it easier for humans to read and write instructions for computers?

A

Programming languages

94
Q

Why are arrays useful?

A

They can be used in loops to go through values one by one

95
Q

What is a floating-point number?

A

A number that can have decimal fractions

96
Q

Why do modern developers not work directly with machine language?

A

It is very hard to understand.

97
Q

What does the NOT operation do to a condition?

A

Inverts it

98
Q

What is a loop in programming?

A

A statement that runs code repeatedly