UNIT 1. INTRODUCTION TO PROGRAMMING AND PROBLEM SOLVING

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

A set of practice flashcards covering key concepts from the lecture notes on programming, PDLC, language generations, and examples.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

What is programming?

A technological process for telling a computer which tasks to perform to solve problems; a collaboration where humans write instructions (code) in a language computers can understand.

2
New cards

What is the difference between programming and coding?

Programming is the mental process of designing instructions for a machine; coding is translating those ideas into a written language the computer can understand.

3
New cards

What is the Program Development Life Cycle (PDLC)?

A set of steps or phases used to develop a program in any programming language.

4
New cards

List the PDLC phases.

Problem Definition; Problem Analysis; Algorithm Development; Coding & Documentation; Testing & Debugging; Maintenance.

5
New cards

PDLC Phase: Problem Definition

Involves defining the problem statement and setting the boundaries of the problem.

6
New cards

PDLC Phase: Problem Analysis

Determines requirements and gathers resources; defines variables, functions, and structures.

7
New cards

PDLC Phase: Algorithm Development

Develops the step-by-step procedure based on the Problem Analysis.

8
New cards

PDLC Phase: Coding & Documentation

Writes and implements the actual programming instructions using a programming language.

9
New cards

PDLC Phase: Testing & Debugging

Tests the code with various inputs to ensure it solves the problem and produces the desired output.

10
New cards

PDLC Phase: Maintenance

Ongoing support after deployment; if enhancements are needed, revisit earlier phases.

11
New cards

What is source code?

The set of instructions written in a programming language; the DNA of software.

12
New cards

What is compilation?

Translating the entire source code into machine code before execution; produces an executable file and typically runs faster after compiling.

13
New cards

What is interpretation?

Translating and executing code line-by-line at runtime; no standalone executable is produced.

14
New cards

Compilation vs Interpretation: which is faster after translation?

Compilation—faster execution at run-time since code is pre-translated.

15
New cards

Which languages are typically compiled?

C, C++, Java (with compilation to bytecode).

16
New cards

Which languages are typically interpreted?

Python, JavaScript, Ruby.

17
New cards

What is a high-level language?

Languages closer to human language (e.g., C, C++, Java, Python) that require a compiler or interpreter to translate to machine code.

18
New cards

What is a 3rd generation (3GL) language?

High-level languages like C, C++, Java, Python that are portable and aimed at programmer productivity.

19
New cards

What is a 4th generation (4GL) language?

Declarative languages focused on what the program should accomplish (not how); examples include SQL and MATLAB.

20
New cards

What is a 5th generation (5GL) language?

AI and logic-based languages that describe relationships and derive conclusions; examples include Prolog and Lisp.

21
New cards

Give an example SQL query from the notes.

SELECT name FROM students WHERE grade > 90;

22
New cards

Name a few popular languages and their general use cases: C.

Procedural, efficient, close to hardware; used in operating systems and embedded systems; 3rd Gen.

23
New cards

Name a few popular languages and their general use cases: Java.

Platform-independent, strong OO features; used in Android apps and enterprise applications; 3rd Gen.

24
New cards

Name a few popular languages and their general use cases: Python.

Easy-to-read syntax, interpreted, multi-paradigm; used in AI tools, automation, data analysis; 3rd Gen.

25
New cards

Name a few popular languages and their general use cases: JavaScript.

Web scripting for dynamic content; used in interactive websites and frontend frameworks; 3rd Gen.

26
New cards

Name a few popular languages and their general use cases: SQL.

Declarative language for managing databases; generation 3 (as per notes).

27
New cards

Name a few popular languages and their general use cases: Prolog.

Logic-based language used for knowledge representation and AI; 4th Gen.

28
New cards

Name a few popular languages and their general use cases: Lisp.

List processing, symbolic computation; AI research and natural language processing; 5th Gen.

29
New cards

What is the role of programming in problem solving?

Acts as a bridge between human needs and computer capabilities, turning abstract problems into executable solutions.