C Programming Concepts and VIVA Prep

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

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering problem-solving strategies, the C compilation process, errors, data types, and operators.

Last updated 5:09 PM on 8/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

35 Terms

1
New cards

Problem Solving in Programming

The process of understanding a problem and developing a logical solution that can be implemented as a program.

2
New cards

Algorithm

A finite sequence of well-defined steps used to solve a problem.

3
New cards

Characteristics of a Good Algorithm

Finiteness, definiteness, input, output, effectiveness, and correctness.

4
New cards

Flowchart

A graphical representation of an algorithm using standard symbols.

5
New cards

Pseudocode

An informal, language-independent description of an algorithm.

6
New cards

Debugging

The process of finding and correcting errors in a program.

7
New cards

Testing

Executing a program with different inputs to verify whether it produces the expected results.

8
New cards

Compilation

Translation of source code into machine-understandable code.

9
New cards

C Compilation Flow

The multi-step process of converting C source code to an executable: program.c → Preprocessor → Compiler → Assembler → Linker → Executable.

10
New cards

Preprocessor

A compilation stage component that processes directives such as #include, #define, and conditional compilation.

11
New cards

Source Code

The C program written by the programmer, generally stored in a .c file.

12
New cards

Object Code

Machine-level code produced before the final executable is linked.

13
New cards

Linker

A compilation tool that combines object code with required library code to produce an executable.

14
New cards

Library in C

A collection of predefined functions that can be used by programs.

15
New cards

Linker Error

An error that occurs if a required function definition cannot be found during linking.

16
New cards

Executable File

The final machine-code program that can be run by the operating system.

17
New cards

Syntax Error

An error caused by violating the grammatical rules of C, such as omitting a semicolon.

18
New cards

Semantic Error

An error where the program may be syntactically valid, but its meaning or operation is incorrect.

19
New cards

Runtime Error

An error that occurs while the program is executing.

20
New cards

Variable

A named memory location used to store a value.

21
New cards

Rules for Naming Variables in C

Identifiers can use letters, digits, and underscores (_); cannot start with a digit; cannot contain spaces; and cannot use C keywords.

22
New cards

Data Type

Specifies the kind of value a variable can store and the operations applicable to it.

23
New cards

sizeof Operator

An operator in C that gives the size of an object or type in bytes.

24
New cards

Declaration

A statement that specifies the name and type of a variable, e.g., int age;.

25
New cards

Initialization

Giving a variable its initial value at the time of declaration, e.g., int age = 20;.

26
New cards

Constant

A value that does not change during a particular computation.

27
New cards

Character Constant vs. String Literal

'A' is a character constant enclosed in single quotes, whereas "A" is a string literal.

28
New cards

Modulus Operator (%)

An arithmetic operator that returns the remainder of integer division and requires integer operands.

29
New cards

Boolean Values in C

C considers zero as false and any non-zero value as true in a conditional context.

30
New cards

Increment and Decrement Operators

Operators ++ and -- that increase or decrease a variable's value by 11, respectively.

31
New cards

Prefix vs. Postfix Operators

Prefix (e.g., ++i) changes the variable before its value is used in the expression; postfix (e.g., i++) yields the old value first, then increments the variable.

32
New cards

Bitwise Operators

Operators (&, |, ^, ~, <

33
New cards

Expression

A combination of operands and operators that produces a value.

34
New cards

Expression vs. Statement

An expression computes a value, whereas a statement performs an action or control step in the program.

35
New cards

Conditional Operator (Ternary Operator)

The operator ?: which uses three operands following the syntax: condition ? expression1 : expression2.