Introduction to Software Engineering and C Programming

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/39

flashcard set

Earn XP

Description and Tags

Practice flashcards for Week 1 of Software Engineering and C Programming, covering computer organization, hardware/software history, and basic C language structure.

Last updated 3:02 PM on 8/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

What is the definition of a computer according to the lecture notes?

A programmable electronic device designed to accept input data, process it in line with a sequence of instructions called programs, and provide output in the desired format.

2
New cards

Who observed the trend known as Moore's Law in 1965?

Gordon E. Moore, the co-founder of Intel.

3
New cards

What does Moore's Law state regarding microchips?

The number of transistors on a microchip doubles every two years, with a 50%50\,\% reduction in cost.

4
New cards

What electronic component and memory type were used in the first generation of computers (1940s1950s1940\text{s}-1950\text{s})?

Vacuum tubes and magnetic drums.

5
New cards

Which programming language and electronic component characterize the second generation of computers (1950s1960s1950\text{s}-1960\text{s})?

Assembly language and transistors.

6
New cards

What is considered the most well-known input device?

The keyboard.

7
New cards

What is the role of the Control Unit (CU) in the Central Processing Unit?

It coordinates the operation of the processor and is known as the nerve centre because it fetches and decodes instructions, selects registers, and tells the ALU which operation to perform.

8
New cards

Which functional unit carries out calculations such as addition, subtraction, and logical operations like AND and OR?

The Arithmetic & Logic Unit (ALU).

9
New cards

What are the primary differences between RAM and ROM?

RAM is volatile and stores active programs and data temporarily, whereas ROM is non-volatile and stores permanent instructions.

10
New cards

Define a bit and a byte as described in the Memory Unit section.

A bit is either 00 or 11, and 88 bits make one byte.

11
New cards

What is the purpose of cache memory?

It stores frequently used data and instructions close to the CPU, making it faster than RAM to help the CPU access information quickly.

12
New cards

Identify four categories of fields where computer programs are widely used.

Web development, software applications, embedded systems, and Data Science & AI.

13
New cards

In programming languages, what is the 'Lexicon'?

The set of rules that determines which symbols, such as letters, digits, and punctuation marks, can be used in the language.

14
New cards

What does the 'Syntax' of a programming language determine?

The appropriate ways of collating symbols within a program.

15
New cards

What is meant by the 'Semantics' of a programming language?

The set of rules that determines the meaning and effect of valid program statements.

16
New cards

What are the two low-level languages mentioned in the notes?

Machine language (consisting of bits) and Assembly language (using alphanumeric code).

17
New cards

How many statements in machine code does one high-level language statement typically translate into?

One high-level statement translates into many lines of machine code instructions.

18
New cards

Who developed the C programming language and in what year?

Dennis M. Ritchie at AT&T Bell Laboratories in 19721972.

19
New cards

What language was the predecessor to C?

The B language.

20
New cards

What is the formal name of the current update on the C standard document?

ISO/IEC 9899:20249899:2024.

21
New cards

List the six phases a C program typically goes through before execution.

Phase 1: Editor, Phase 2: Preprocessor, Phase 3: Compiler, Phase 4: Linker, Phase 5: Loader, and Phase 6: CPU.

22
New cards

What are the four key components of an Integrated Development Environment (IDE)?

Text/Code Editor, Compiler, Debugger, and Version Control System.

23
New cards

What is the purpose of the single-line comment and multi-line comment in C?

They represent nonexecutable instructions, used as // for single-line and /* ... */ for multi-line comments.

24
New cards

What does the preprocessor directive #include <stdio.h> signify?

It includes the standard input/output header file, which allows the program to use functions like printf and scanf.

25
New cards

What is the purpose of the escape sequence \n?

It is the NEWLINE sequence, which instructs the program to move the cursor to the beginning of the next line.

26
New cards

Describe the escape sequences \t and \a.

\t moves the cursor to the next horizontal tab stop, and \a produces a sound or visible alert.

27
New cards

Why are \\ and \" used in C strings?

\\ is required to insert a backslash character, and \" is required to insert a double-quote character because these symbols have special meanings in strings.

28
New cards

What is the role of the Linker in the program life cycle?

The Linker locates library functions (like printf), inserts the proper calls to them in the object program, and creates an executable file (.exe).

29
New cards

According to indentation conventions, what is the common number of spaces per indentation level?

Four spaces.

30
New cards

What does the scanf function do in C?

It reads input from the keyboard and stores the data in a memory location retrieved by the ampersand symbol (&).

31
New cards

What represent the integer format specifier and the long double format specifier in C?

%d for Int and %LF for long double.

32
New cards

What characters are allowed in a C identifier?

Letters, digits, and the underscore character (_).

33
New cards

What is the primary rule regarding the start of a C identifier?

An identifier must not begin with a digit.

34
New cards

What does it mean that C is 'case-sensitive' regarding identifiers?

It means that age, Age, and AGE are treated as three different and distinct identifiers.

35
New cards

In the addition program example, what is the purpose of the ampersand (&) in scanf("%d", &integer1);?

It tells scanf the location or address in memory where the entered value should be stored.

36
New cards

What are the format specifiers for float and double data types?

%f for float and %lf for double.

37
New cards

What is the formula to convert Celsius to Fahrenheit as used in Class Exercise 6?

Fahrenheit=(Celsius×95)+32Fahrenheit = (Celsius \times \frac{9}{5}) + 32

38
New cards

According to Tutorial 2, what is the formula for calculating total resistance (RTR_T) in a parallel circuit?

RT=VITR_T = \frac{V}{I_T}

39
New cards

What does the term 'portable' mean in the context of high-level languages?

It means the language can run across various hardware architectures or platforms.

40
New cards

What memory unit is characterized as non-volatile secondary storage?

Examples include SSDs, HDDs, USB flash drives, memory cards, and optical discs.