0% found this document useful (0 votes)
78 views1 page

Computer Programming and Applications

This document contains questions from a Computer Programming and Applications exam covering topics in C programming and MATLAB. It has three sections: Section A contains 10 short answer and true/false questions covering basic C concepts like data types, functions, syntax, and the preprocessor. Section B has 5 long answer questions requiring explanations of data types, functions like power(), flowcharts, control structures like if-else, storage classes, and the differences between compilers and interpreters. It also covers arrays, pointers, and the roles of MATLAB and PSIM. Section C provides 3 long answer question choices about operators, string functions, matrix addition in C, loops, and differences between high level and machine languages.

Uploaded by

Rajan Sahota
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views1 page

Computer Programming and Applications

This document contains questions from a Computer Programming and Applications exam covering topics in C programming and MATLAB. It has three sections: Section A contains 10 short answer and true/false questions covering basic C concepts like data types, functions, syntax, and the preprocessor. Section B has 5 long answer questions requiring explanations of data types, functions like power(), flowcharts, control structures like if-else, storage classes, and the differences between compilers and interpreters. It also covers arrays, pointers, and the roles of MATLAB and PSIM. Section C provides 3 long answer question choices about operators, string functions, matrix addition in C, loops, and differences between high level and machine languages.

Uploaded by

Rajan Sahota
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy