Question: Please help me answer those multiple choices. Thank you in advance Question 1. [50 points] 1. [5 points] What best describes the C preprocessor? (1)

Please help me answer those multiple choices. Thank you in advance  Please help me answer those multiple choices. Thank you in advance
Question 1. [50 points] 1. [5 points] What best describes the C
preprocessor? (1) Does syntax checking before compilation (2) Does the lexical analysis

Question 1. [50 points] 1. [5 points] What best describes the C preprocessor? (1) Does syntax checking before compilation (2) Does the lexical analysis (3) Reads files and handles macros (4) Links to standard C libraries Answer: 2. [5 points] An escape sequence is: (1) A mechanism to break out of a loop (2) A mechanism to change the meaning of a character (3) A series of actions to execute protected code (4) A series of statements to recover from an error. Answer: 3. [5 points] Which of the following statements about arrays is true An array dereferencing is only checked for out-of-bound conditions if the size is provided (e.g. int arr[101:) but not if it is omitted (e.g. int arrll;) (1) (2) You need to provide at least some sizes when declaring a multidimension- (3) Arrays in C have dynamic sizes only if they are declared without a size (4) You can omit the first size when defining an array (i.e. int al array (i.e. int arr[l) Answer 415 points] The type of ' \0' s (1) int (2) char (3) unsinged char (4) signed char Answer_ 5. [5 points] A cast is (1) The list of external declarations (2) The list of user defined types (3) A mechanism for explicit type conversion (4) The prototype of a function definition Answer: 6. [5 points] What best describes the C keyword static (1) A private global variable (2) An unchangable global variable (3) A variable that cannot be relocated (4) A variable that is not dynamic Answer: 7. [5 points] Which of the following is not an assignment operator (4) & Answer: 8. I5 points] The main advantage of pointers to pointers vs. two dimensional rays is (1) (2) (3) (4) Memory allocation is simpler They are faster when the size of the array is known They can represent objects like matrices more compactly, saving space They can represent arrays with rows of varying size, saving space Answer: 9. [5 points] What does the following function do? xxx (char *a, char *b) while (*at+ *b+t) (1) (2) (3) (4) Goes into infinite loop Copies two null-terminated strings Checks if two null-terminating strings are equal Nothing since if only changes local variables Answer: 10. [5 points] The following piece of code int *x; x-(int *)malloc(sizeof (int))i (x-NULL) 11 (x[0]-3) (1) Will not compile (2) Executes but has no effect (3) Is a common way to use pointers (4) Might crash if x is NULL

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!