M1S1 Flashcards

1
Q

Q: What is programming?

A

A: Programming is a multistep process for creating a program, giving computers instructions about what to do next.

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

Q: What are the instructions in programming known as?

A

A: Instructions are known as code.

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

Q: Why is programming important?

A

A: It fosters innovation, creates eco-friendly solutions, speeds up input and output processes, and automates data management and analysis.

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

Q: What is a computer program?

A

A: A computer program is a list or sequence of instructions that tell a computer what to do.

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

Q: What must a computer program be written in?

A

A: A computer program must be written in a programming language (PL).

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

Q: What defines a programming language?

A

A: A programming language is a type of written language that tells computers what to do.

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

Q: What is syntax in programming languages?

A

A: Syntax is the grammar or rules governing the structure and content of statements in a programming language.

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

Q: What is source code?

A

A: Source code is a well-written set of instructions and statements to develop a program.

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

Q: What are the two types of programming languages based on levels?

A

A: Low-level languages and high-level languages.

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

Q: What must source code be translated into for execution?

A

A: Source code must be translated into machine language (binary form) using a language translator.

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

Q: What is an assembler?

A

A: An assembler translates a program written in assembly language to a low-level language.

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

Q: How does an interpreter function?

A

A: An interpreter translates each statement one line at a time and executes it immediately after translation.

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

Q: What is a compiler?

A

A: A compiler translates all statements at once and provides error messages (diagnostics) at once.

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

Q: What is a low-level language?

A

A: Low-level languages use instructions tied directly to one type of computer and are often cryptic and not human-readable.

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

Q: What is a high-level language?

A

A: High-level languages use English-like instructions and can be run on various computer types.

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

Q: How is data represented in a computer?

A

A: Data is represented by microscopic electronic switches that can be either OFF (0) or ON (1).

17
Q

Q: What is machine language?

A

A: Machine language or machine code consists of instructions written in 0s and 1s.

18
Q

Q: What is assembly language?

A

A: Assembly language uses symbolic names for opcodes and is translated into machine instructions using an assembler.

19
Q

Q: What is a programming paradigm?

A

A: A programming paradigm is a style or method of programming used to solve problems with certain programming languages.

20
Q

Q: What is a procedure-oriented program?

A

A: In a procedure-oriented program, the programmer focuses on major tasks and instructs the computer step-by-step from start to finish.

21
Q

Q: Give an example of a procedure-oriented program.

A

A: A payroll program that inputs employee data, calculates gross pay, taxes, net pay, and outputs a paycheck.

22
Q

Q: What is an object-oriented program?

A

A: An object-oriented program requires the programmer to focus on objects that the program can use to achieve its goals.

23
Q

Q: Provide an example of an object used in an object-oriented program.

A

A: In a Windows-based program, objects may include check boxes, list boxes, and buttons.

24
Q

Q: Why is writing in machine language considered tedious?

A

A: Writing in machine language is tedious due to its cryptic nature and the requirement to manage 0s and 1s.