Topics For Midterm Test
Topics For Midterm Test
1. What is algorithm?
3. Ability to devise algorithms for simple problems and represent such algorithms using
pseudocode and flowcharts
4. Understanding of problem-solving recipe described in class lectures and practiced in
labs/tutorials
7. Functional understanding of machines: CPU, control unit, ALU, registers, memory, input,
and output
8. von Neumann architecture for stored-programs: both instructions and data are stored
in memory and instructions are executed by CPU to transform data (stored in memory)
1. integer: signed and unsigned, char , short , int , long , long long data types
2. floating-point: float , double , long double
3. void keyword to represent no data
12. Understand difference between variables and constants
1/4
Midterm Test Topics [Prasanna Ghali]
1. operators, operands
2. meaning of unary, binary, and ternary operators
3. arithmetic operators
1. multiplicative operators
2. additive operators
3. notion of type and behavior of / and % operators
4. expression evaluation using expression trees
5. precedence
6. associativity
4. Conditionals
3. _Bool type and <stdbool.h> header and bool , true , and false macros
2/4
Midterm Test Topics [Prasanna Ghali]
7. switch statement
1. what is a label?
2. case keyword
3. break keyword
8. Why these operators are special (hint: they are sequence operators): logical or: || ,
logical and: && , conditional operator: ? : , and comma operator ,
1. while statement
4. do while statement
1. Formatted input/output
1. abstraction of I/O using streams
2. stdin , stdout , and stderr
3. printf function: printing integers and floating-point numbers to stdout
4. scanf function: reading integers and floating-numbers from stdin , significance
of & operator in arguments
5. conversion specifiers used in printf and scanf functions to print common
integer and floating-point types
6. controlling width and precision of output of integers and floating-point numbers
7. escape sequences - able to understand the meaning of this and similar escape
sequences: printf("\"\\%%\t%%\t%%\\\"\n");
2. Character reading functions:
3/4
Midterm Test Topics [Prasanna Ghali]
4/4