Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language test questions, looking for answers
C language test questions, looking for answers

1. Multiple choice questions (***10)

③ ?2.③ ?3.① ?4.④ ?5.③ ?6.① ?7.④ ?8.① ?9.① ?10.①

2. Fill-in-the-blank questions (***7)

; ?

-32768 ~ 32767 (16-bit machine)

Underline underline

double a=0.618

11, 6

3. True or False Questions (*** 5)

X

4. Read the following C language program. The output result of the following program is 2,1.

5. There are two floating point numbers a=5.2, b=3.1. Calculate and output their sum, difference, product and quotient.

//#include "stdafx.h"//vc++6.0 add this line.

#include "stdio.h"//

void main(void){

double a=5.2,b=3.1;

printf("a + b = %f\na - b = %f\na x b = % f\na÷ b = %f\n",a+b,a-b,a*b,a/b);

}