You are on page 1of 2


Fill in blanks
a) C is a . language. ..means that a C program written for one computer system can be compiled
and run on another system with little or no modification
b) .is a series of statements or commands that are used to instruct the computer to perform your desired tasks.
c) Before C program can run on a computer, it must be translated from source code to ..language.
d) The machine language instructions created by the compiler are called .code, and the disk file containing them is called an
e) Linker errors are relatively rare and usually result from misspelling the name of a C .function.
f) The only component that is required in every C program is the main().
g) The .directive instructs the C compiler to add the contents of an include file into your program during compilation.
h) A ..definition informs the compiler of the variable's name and the type of data it is to hold.
i) .can be placed anywhere in your source code, but they are in effect only for the portions of the source code that follow
the . directive.
j) An file is a separate disk file that contains information needed by the compiler to use various functions


A) The following program has a problem. Enter it in your editor and compile it. Which lines generate error
#include <stdio.h>
printf( "Keep looking!" );
printf( "You\'ll find it!\n" );
return 0;
B) #include <stdio.h>
printf( "This is a program with a " );
do_it( "problem!");
return 0;
C) c language has been developed by
1) ken Thompson 2) Dennis Ritchie 3) Peter Norton 4) Martin Richards
d) c is a
1) Middle level language 2) High level 3) Low level 4) None

e) c programs are converted into machine language with the help of

1) An interpreter 2) a compiler 3) an operating system 4) none
f) a character variable can at a time store
1) 1 char 2) 8 char 3) 128 4) none
g) which of the following statement is wrong
1) mes=125.32 2) con=t*a 3) this=t*20 4) 3+a=b
h) This format specifer causes printf to display 6 decimal places
1) lf 2) lg 3)le 4) none

3. Match the column

a library function that displays information on-screen scanf()
is a named data storage location in computer's memory Integer
variables hold values that have a fractional part printf()
It reads data from the keyboard and assigns that data to one or more program variables. Floating-point
variables hold values that have no fractional part variable

4. True False
1. The actual value of the symbolic constant needs to be entered only once, when it is first defined.
2. When the compiler converts the source code to object code, it throws the comments and the white space away.
3. The variable name cant contain letters, digits, and the underscore character (_).
4. No special keyword is needed to make an integer variable signed; integer variables are signed by default.
5. The identifier count and Count refer to two different variables.
6. C variable name can be up to 31 characters long.

7. Blank spaces cannot be inserted within a integer variable
8. C is case sensitive all keyword and standard library functions are lowercase.

2 Source code
3 machine
4 object,
5 library
6 function
8. variable
9 #defines
10 header file