1. Which statement best describes “sequence control” in C? A) Execution of statements in arbitrary order B) Execution of statements strictly from top to bottom unless altered by control constructs C) Execution only of function calls D) Execution only of conditional statements [Answer:] B 2. What will the following code print? int x = 5;
1. Which C data type is used to represent a single character? A) int B) char C) float D) short [Answer: B] 2. Which operator returns the size (in bytes) of a data type or variable? A) & B) * C) sizeof D) typeid [Answer: C] 3. Which of these is not a standard integer
1. Which of the following is a valid identifier in C? A) 2count B) _total C) int D) for-loop [Answer:] B 2. In C, identifiers are: A) Case-insensitive B) Case-sensitive C) Always uppercase D) Always lowercase [Answer:] B 3. Which of the following is not a valid identifier? A) sum_of_values B) value#1 C) value1 D)
1. Which of the following is not a token in C? A) identifier B) whitespace C) constant D) operator [Answer: B] 2. The C token type that represents reserved words like int, return, for is called: A) identifier B) keyword C) literal D) preprocessor [Answer: B] 3. Which of the following is a valid identifier