Introduction to Programming Question Bank
Introduction to Programming Question Bank
S KNOWLEDGE
QUESTION CO
NO LEVEL
UNIT I
1 Explain Algorithm and flowchart with examples. Apply(K3) 1
Explain the types of computer languages and block diagram of Understanding(K2)
2 1
Computer?
3 Illustrate the Structure of a C-Program with an Example? Apply(K3) 1
4 Explain different data types with Example Apply(K3) 1
5 Explain about I/O functions and Type conversion with example Apply(K3) 1
6 Classify different types of operators supported in C Language. Understanding(K2) 1
UNIT 2
Explain with syntax and example program for each : Simple if, if-
1 Applying(K3) 2
else, Nested if - else
Explain Switch and its syntax? Write a program to accept two
2 integers operands and one operator from user, perform the operation 2
Applying(K3)
and print (Consider operators +,-, *, /, %) using switch statement.
Explain with syntax and example program for each While , do –
3 Applying(K3) 2
While and for loops
4 Build a c program check given number is Palindrome number or not Applying(K3) 2
a) Build a c program to swap two numbers without using temporary
variable
5 Applying (K3) 2
b) Build a c program check given number is Armstrong number or
not
UNIT 3
1 Define 1D and 2D array, Declaration, Initialization and Display of Applying (K3) 3
all the elements with example
2 Explain string handling built-in functions with examples Applying (K3) 3
3 Given an array of numbers, write a program to find the sum of all Analyse(k4) 3
elements.
4 Develop a C program for Multiplication of two Matrices Analyse(k4) 3
5 Develop a C program for reverse of a given string and can Analyse(k4) 3
concatenation of two strings without built-in functions
6 Develop a C program for addition of two Matrices Analyse(k4) 3
UNIT 4
Explain pointers with an example (Definition, Declaration,
1 Applying (K3) 4
Initialization, with Example)?
Explain Dynamic memory management functions with proper
2 Applying (K3) 4
example?
3 Explain array of structures with example? Applying (K3) 4
Explain Structure? Explain structure declaration,Initialization and
4 Applying (K3) 4
structure variable declaration with Syntax and example?
5 Explain Unions and compare union with structures? With examples Applying (K3) 4
UNIT 5
1 Expalin storage classes with Examples Applying (K3) 5
2 Explain about function declaration, definition and function calling Applying (K3) 5
with example
Build a C Program to find number of characters, words and lines in a Applying (K3)
3 5
file?
Examine the difference between pass by value and pass by reference
4 Applying (K3) 5
in C functions
Write a c Program to factorial of a given number and GCD of two
5 Applying (K3) 5
numbers using recursion
6 Write a c program to copy the contents of one file to another file Applying (K3) 5