0% found this document useful (0 votes)
3 views3 pages

QuestionBank 1

The document is a question bank for a course on Problem Solving and C Programming, containing a variety of questions categorized into 1-mark, 3-mark, 4-mark, and 5-mark sections. It covers fundamental concepts of C programming, including data types, control structures, algorithms, and functions. The questions aim to assess understanding and application of C programming principles.

Uploaded by

aditithakare02
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)
3 views3 pages

QuestionBank 1

The document is a question bank for a course on Problem Solving and C Programming, containing a variety of questions categorized into 1-mark, 3-mark, 4-mark, and 5-mark sections. It covers fundamental concepts of C programming, including data types, control structures, algorithms, and functions. The questions aim to assess understanding and application of C programming principles.

Uploaded by

aditithakare02
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/ 3

Problem Solving and C Programming

Question Bank
(1 Mark Questions)
a) Who invented C language?
b) What is use of loop statement?
c) What is actual Parameters?
d) What is formal parameters?
e) “C is middle level language” Comment.
f) Write note on array index.
g) What is keyword?
h) List data types in C.
i) Give multi-way decision making statement.
j) Define array.
k) Define variable.
l) Define constants.
m) List rules to define an identifier in C.
n) Define algorithm.
o) Define flowchart.
p) What is local variable?
q) What is global variable?
r) Give syntax of switch statement.
s) Define Function
t) List characteristics of an algorithm.
u) What are limitations of C language?
v) Give syntax of if statement.
w) Explain syntax of for loop
x) What are limitations of C language?

(3 Marks Questions)
a) Explain basic data types of C language.
b) Write an algorithm to calculate addition of two integers.
c) Write an algorithm to calculate multiplication of two integers.
d) List escape sequences in C with meaning.
e) Differentiate between call by value and call by reference.
f) Give limitations of array in C.
g) Explain declaration and initialization of one dimensional array.
h) What is nested-if? Give example.
i) Explain storage classes in C.
j) Explain if-else statement with example.
k) Draw a flowchart to calculate multiplication table of given number.
l) Draw a flowchart to calculate addition of two integers.
m) Explain any three library functions in C.
n) Explain ternary operator with example.
o) Explain break and continue statements with example.
p) Write a short note on while loop.
q) Explain formatted input and output functions in C.
r) Explain getchar(),putchar() with example.
(4 Marks Questions)

a) Explain call by value with example.


b) Explain call by reference with example.
c) Write an algorithm to check whether given number is positive or negative.
d) Draw a flowchart to calculate factorial of given number.
e) Draw a flowchart to display sum of first ‘n’ even numbers
f) Differentiate between while and do-while statement.
g) Write a short note on function with example.
h) Differentiate between if and switch.
i) Write a program to display maximum of two integers.
j) Write a short note on one-dimensional array in C.
k) Write a short note on two-dimensional array in C.
l) Write a program to swap two integers using function.
m) Explain for loop with example.
n) Explain program development life cycle in detail.
o) Explain features of C language.
p) Write a short note on variables in C.
q) Write a short note on C tokens.
r) What is recursion? Give example.
s) Write a program to calculate factorial of given number.

(5 Marks Questions)

a) Explain structure of a C program.


b) Explain steps involved in problem solving.
c) Write a short note C tokens.
d) Write a short note header file.
e) Explain arithmetic operators with example.
f) Explain unary operators in C.
g) Write a program to display first n numbers.
h) Explain switch statement with example.
i) Explain do-while loop with example.
j) Write a program to calculate factorial of given number using function.
k) Write a program to check given number is prime or not.
l) Write a program to display sum of first n numbers.
m) What is flowchart? Explain any four flowchart symbols.
n) Explain increment decrement operator with example.(pre and post)
o) Explain call by value and call by reference with example.
p) Write a short note on user defined function with example.
q) Trace the output with meaning
main ( )
{
int i = 5;
while (i)
{
i--;
if (i = =3)
continue;
printf ("in Hello");
}
}

r) Trace the output with meaning


main ( )
{
int i = 1;
while (i<=5)
{
if (i = =3)
continue;
printf ("Hello");
i++;
}
}

s) Trace the output with meaning


main ( )
{
int i = 1;
do{
if (i = =3)
continue;
printf ("Hello");
i++;
} while (i<=5) ;

You might also like