1.
Number 1 is a legal name for variables in C language.
2.
Evaluate the following code. Which variable will be assigned the value 9? int length=9, width, height;
A. 
B. 
C. 
D. 
3.
The machine code is the same for computers designed by different manufacturers.
4.
Which of the following is NOT a strength of C language
A. 
B. 
C. 
D. 
5.
Assembly language has a one-to-one relationship with machine code
6.
A typical high-level-language statement is equivalent to many machine-code instructions.
7.
What is the size of int in memory
A. 
B. 
C. 
D. 
8.
What is the only function all C programs must contain?
A. 
B. 
C. 
D. 
9.
Which pair of punctuations is used to signal the beginning and end of a function in C?
A. 
B. 
C. 
D. 
10.
Which of the following is not a correct variable type?
A. 
B. 
C. 
D. 
11.
In which standard library file is the function printf() located ?
A. 
B. 
C. 
D. 
12.
In order to properly use a variable...
A. 
The variable must have a valid type.
B. 
The variable name can not be a keyword (part of the C syntax).
C. 
The variable name must begin with a letter or underscore.
D. 
13.
Which operating system was C developed for?
A. 
B. 
C. 
D. 
14.
What punctuation must each statement have at the end of the line ?
A. 
B. 
C. 
D. 
15.
What is the output of following C program?#include int main () { int a=6; int b; b=a*7/3-4*2; printf("a=%d, b=%d\n", a, b); return 0;}
A. 
B. 
C. 
D. 
16.
What is the output of the following program?main(){ int a = -5, b = -4; printf("%d",a/b);}
A. 
B. 
C. 
D. 
17.
What is the output of the following program?void main (){int x = 10;printf ("x = %d, y = %d", x, x*2-4);}
A. 
B. 
C. 
D. 
18.
Which line of the following program will generate error? (The number at the left of each line indicate line number and are not part of the program code)1 #include23 int main () 4 {5 height =4;6 int height;7 printf("The height is %d\n", height);8 return 0;9 }
A. 
B. 
C. 
D. 
19.
Which number is returned at the end of function to indicate that the program executes successfully?
A. 
B. 
C. 
D. 
20.
Which symbol is used for address of the variable?
A. 
B. 
C. 
D. 
21.
In a C program, the first statement that will be executed is:
A. 
The first executable statement of the program.
B. 
The first executable statement of the main() function.
C. 
The first executable statement after the comment /*start here*/
D. 
The first executable statement of the end function.
22.
To incldue a file that you created on your onw, single quotation marks are used. For example: #include 'myfile.h'
23.
Compiler translate the middle-level and high-level language programs into equivalent assembly language programs.
24.
Which of the following is used to indicate that the function does not return any value?
A. 
B. 
C. 
D. 
25.
The type of a variable determines the operations the compiler will allow for the variable.