Introduction To Program Development Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

flashcard set

Earn XP

Description and Tags

Comprehensive practice questions covering the introductory concepts of C++ program development, software categories, language evolution, and debugging.

Last updated 5:16 AM on 6/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

According to the transcript, what is a Program?

Instructions in computer memory which the computer follows to perform a task.

2
New cards

How is a Programmer defined?

A person who writes instructions (programs) to make a computer perform a task.

3
New cards

What is the definition of Software?

A collection of programs and data that instruct the computer what to do.

4
New cards

What are the two categories of software mentioned in the notes?

System software (Operating Systems like Windows, UNIX, Linux) and Application software (Word processing, games).

5
New cards

In programming, what does the term Syntax refer to?

The spelling and grammars of a programming language.

6
New cards

What is an Algorithm?

A sequence of instructions written for a computer to solve a problem.

7
New cards

What are the three categories of computer languages?

Machine language, Symbolic/Assembly language, and High-level language.

8
New cards

In which decade did Machine Languages originate?

The 1940s.

9
New cards

In which decade did High-Level Languages originate?

The 1960s.

10
New cards

Describe Machine Language instructions.

They consist of binary numbers (00s and 11s) and are platform-dependent.

11
New cards

What is the function of an Assembler?

To translate a program written in assembly language into machine language for execution.

12
New cards

What defines a High-Level Language?

It uses English-like codes and mathematical operators, and it is platform-independent.

13
New cards

What is a Compiler used for?

To translate a program written in a high-level language to machine language.

14
New cards

What are the five steps in the compilation process of a C++ program?

1) Editor (Source code), 2) Compiler (Object code), 3) Linker (Link with libraries), 4) Loader (Put in memory), 5) CPU (Ready to run).

15
New cards

What are the four steps of Program Development?

  1. Understand the problem, 2. Develop a solution, 3. Write the program, 4. Test the program.
16
New cards

What tools can be used to design the logic of a program during the 'Develop a solution' phase?

Structure chart, Pseudocode, and Flowchart.

17
New cards

What are the formulas for finding the area and perimeter of a rectangle in the Example 1-1?

perimeter=2×(length+width)\text{perimeter} = 2 \times (\text{length} + \text{width}) and area=length×width\text{area} = \text{length} \times \text{width}

18
New cards

What is a Structure Chart?

A hierarchy chart that shows the functional flow through the program and how it is broken into logical steps.

19
New cards

What is the purpose of Pseudocode?

To use English words to convey program logic and algorithm steps.

20
New cards

What does a Flowchart use to represent the logical flow of data?

Standard graphical symbols.

21
New cards

What are 'Bugs' in programming?

Errors, also known as exceptions, that occur during compilation or execution.

22
New cards

Define Syntax Errors.

Code violations identified during compilation, such as a missing semicolon (;;) or an undefined variable.

23
New cards

Define Run-time Errors.

Illegal operations that occur during execution, such as dividing a number by zero or opening a non-existing file.

24
New cards

What are Logic Errors?

Errors where the program passes syntax and run-time checks but produces false results due to a flawed algorithm.

25
New cards

In C++, what is the purpose of the line "#include "?

It is a preprocessor directive that allows input and output.

26
New cards

What is the meaning of "int main()" in a C++ program?

It is the command indicating where program execution begins.

27
New cards

In C++, what are the symbols for the stream insertion and stream extraction operators?

Insertion is <<<< (used with cout) and extraction is >>>> (used with cin).

28
New cards

What does the escape sequence "\n" represent?

It inserts a new line.

29
New cards

In a C++ return statement, what does the value 0 usually indicate?

That the program has terminated successfully.

30
New cards

According to 'Good Programming Habits', what should programmers use for identification?

Meaningful identifiers.