Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

S.B. Roll No…………………………………….

COMPUTER PROGRAMMING AND APPLICATIONS


3rd/Elect/EEE/0526/0352/6904/ May’16
Duration: 3hrs M.Marks=75
SECTION A
Q 1. Do as directed: 1.5x10=15
a. Compiler converts ………..language to machine language.
b. The ………. Function is used to display output on the screen.
c. Any C statement always ends with ………
d. A string in C is actually a character data type. (T/F)
e. Pointers are declared by using……..
f. C is a case sensitive language. (T/F)
g. The data types are declared using the keywords char,int,float and double respectively.(T/F)
h. In MATLAB, technical problems can be solved more faster than C,C++.(T/F)
i. In C, ML stands for ………
j. The………….Preprocessor is used to include files like header files stdio.h ,conio.h in beginning
of C program.

o m
SECTION B

.r c
Q 2. Attempt any FIVE questions: 5x6=30
I. Explain different data types used in C with examples.

m
II. Write a program to calculate power of a number using C language.
III.
flow chart.

pe
Define flow chart. Explain different types of shapes used in flow chart .Also give an example of a

o
.r c
IV. Explain if–else statement with the help of an example.
V.
VI.

p a
Explain different storage classes used in C.
Explain the concept of compiler and interpreter.
VII.
VIII.
r
Define Array and Pointer. How do they initialize in C.

b p e
Explain the role of MATLAB and PSIM in electrical engineering.

a
SECTION C

rp
Q 3. Attempt any THREE questions: 3x10=30
a) Define Operator. Explain all types of operators in detail with suitable examples.

b
b) Explain the following string functions with examples:
1. strlen ( )
2. strcmp ( )
3. strcat ( )
4. strcpy ( )
c) Write a program to find Sum of two matrices using C language.
d) Explain various types of loops available in C.
e) Differentiate between high level language and machine language.

You might also like