C-PROGRAM 
BASIC QUESTIONS (part 1) 
Introduction 
1) Computer undergoes three processes to execute the program, what are those? 
A. Computer undergoes a) accepting the data; b) processing the data; c) producing the 
desired result. 
2) Name four functions carried out by basic functional unit. 
A. Input unit; central processing unit; Memory unit; output unit. 
3) CPU consists of how many units, name them. 
A. It consist of two units 1) control unit; 2) Arithmetic Logical unit . 
4) What do you mean by Token and mention its types 
A. Token is smallest individual unit in c programming. And it can be differentiated into 
1-Keywords; 2-Identifiers; 3-constants; 4-operaters; 5-Strings; 6-Special symbols, 
5) What do you mean by data types, elaborate? 
A. It supports (i) primary or fundamental data types (ii)Derived data types (iii)User 
defined data types 
Data type size format specifier 
Char 8 %c 
Int 16 %d 
Float 32 %f 
Double 64 %if 
6) What are the types of initialization? 
A.1) Run time initialization; 2) compile type initialization 
7) What do you mean by control flow?
A. The order in which statements are executed, and the statement which is used to control 
the flow is called control statement. 
8) Explain branching? 
A. statement which is used to skip the part of the program, when the skipping is done 
according to condition is called conditional branching. 
9) What are the types of conditional branching? 
A. (i)simple if;(ii)if-else;(iii)else if ladder;(iv)switch statement 
10) What are the unconditional branching statements? 
A. Which allow to skip the part of the program without condition: it’s types are:- 
(i) goto;(ii)break;(iii)continue. 
11) Define looping? 
A. a section which causes program to be executed repeatedly until condition is true.when 
condition becomes false it terminates. It consist of body of the loop and control expression 
12) How many looping constructs are there in c? 
In C there are 3 looping constructs: 
1. while loop. (entry controlled loop) 
2. do-while loop. (exit controlled loop) 
3. for loop. (entry controlled loop)

C prograaming basic

  • 1.
    C-PROGRAM BASIC QUESTIONS(part 1) Introduction 1) Computer undergoes three processes to execute the program, what are those? A. Computer undergoes a) accepting the data; b) processing the data; c) producing the desired result. 2) Name four functions carried out by basic functional unit. A. Input unit; central processing unit; Memory unit; output unit. 3) CPU consists of how many units, name them. A. It consist of two units 1) control unit; 2) Arithmetic Logical unit . 4) What do you mean by Token and mention its types A. Token is smallest individual unit in c programming. And it can be differentiated into 1-Keywords; 2-Identifiers; 3-constants; 4-operaters; 5-Strings; 6-Special symbols, 5) What do you mean by data types, elaborate? A. It supports (i) primary or fundamental data types (ii)Derived data types (iii)User defined data types Data type size format specifier Char 8 %c Int 16 %d Float 32 %f Double 64 %if 6) What are the types of initialization? A.1) Run time initialization; 2) compile type initialization 7) What do you mean by control flow?
  • 2.
    A. The orderin which statements are executed, and the statement which is used to control the flow is called control statement. 8) Explain branching? A. statement which is used to skip the part of the program, when the skipping is done according to condition is called conditional branching. 9) What are the types of conditional branching? A. (i)simple if;(ii)if-else;(iii)else if ladder;(iv)switch statement 10) What are the unconditional branching statements? A. Which allow to skip the part of the program without condition: it’s types are:- (i) goto;(ii)break;(iii)continue. 11) Define looping? A. a section which causes program to be executed repeatedly until condition is true.when condition becomes false it terminates. It consist of body of the loop and control expression 12) How many looping constructs are there in c? In C there are 3 looping constructs: 1. while loop. (entry controlled loop) 2. do-while loop. (exit controlled loop) 3. for loop. (entry controlled loop)