0% found this document useful (0 votes)
34 views4 pages

Question Bank

The document is a comprehensive question bank for an Introduction to C Programming course, divided into five modules. Each module covers fundamental concepts such as data types, control statements, arrays, strings, pointers, and structures, along with practical programming exercises. Additionally, it includes lab programs to reinforce learning through hands-on coding tasks.

Uploaded by

haripriyams646
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)
34 views4 pages

Question Bank

The document is a comprehensive question bank for an Introduction to C Programming course, divided into five modules. Each module covers fundamental concepts such as data types, control statements, arrays, strings, pointers, and structures, along with practical programming exercises. Additionally, it includes lab programs to reinforce learning through hands-on coding tasks.

Uploaded by

haripriyams646
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/ 4

MODULEWISE QUESTION BANK

INTRODUCTION TO C PROGRAMMING

MODULE-1:

1. Define C? Explain the general structure of C with example.


2. What is a Constant? Explain the types of Constants with example.
3. What is an Identifier? What are the rules to frame an identifier in C? Give examples for valid and invalid
identifier.
4. Define a Variable. What are the rules to frame variable in C? Give examples for valid and invalid
variables.
5. What are data types? List and explain the various data types available in C with example.
6. What is an Operator? List operators in C and explain the Relational, Bitwise and conditional
operators with Example.
7. Explain how integers are stored in the memory.
8. List and explain the different types of input and output functions available in C with syntax and
example.
9. What is Type Conversion/Type Casting? Explain the types of Conversion with programming
example.
10. Write a C program
i. To find area of triangle when the length of all of its sides are known.
ii. To compute size of int, float, double and char variables.
iii. To compute area and perimeter of rectangle.
iv. Which takes p, t, r as inputs, computes the Simple Interest and display the result?
9. Evaluate the following expressions
 Y= a+b*c-d , where a=5, b=4, c=3, d=2.
 X=3*8/4%4*5.
 2*((a%5)*(4+(b-3)/(c+2))) d where a=8,b=15,c=4.
 Z=--a*(a+b)/d-c++*b where a=3, b=4, c=5,d=2.
 a+=b*=c-=5 where a=3,b=5,c=8.
 100/20<=10-5+100%10-20==5>=1!=20.
 a+2>b && !c || a!=d && a-2<=e where a=11,b=6,c=0,d=7 and e=5.

11. Express the following mathematical equations as C programming statements.


−𝑏+√𝑏2 −4𝑎𝑐
i) r=
2𝑎
𝑃𝑅𝑇
ii) ii) 𝐼 = + 𝑡𝑎𝑥
100
3
iii) z= √(s − 𝑠1 )2 + (s − 𝑠2 )2
1 1 1
iv) Sum=  
  
sin 
v) Ø=
cos 
vi) A=xb+yc
vii) y=ex+sin-1
viii) y=e tanx
MODULE-2:

1. Explain all the conditional statements with syntax and respective flowchart (all 5).
2. Explain all the unconditional statements with syntax and example.
3. Explain the working of looping statements with syntax, respective flowchart and example (all
three).
4. Explain the switch statement with syntax and programming example.
5. List the differences between while and do while statement with syntax and examples.
6. Write a C program to
i. Compute the roots of a quadratic equation by accepting coefficients. Print appropriate
messages.
ii. Write a C program that generates the nth term of an Arithmetic Progression (AP)
iii. To check for the leap year or not
iv. Find largest of three numbers using conditional operator.
v. To find the reverse of a positive integer and check for palindrome or not. Display appropriate
messages.
vi. To find sum of digits of a given numbers.
vii. To find sum of ‘n’ odd, Even and all natural numbers using while loop.
viii. C Program to check for the entered number is prime or not
ix. Simulate a Simple Calculator to perform basic arithmetic operations.

MODULE-3:

1. Define array. What is one dimensional array? Explain declaration and initialization of single
dimensional array with syntax and example.
2. What are two dimensional arrays? Explain declaration and initialization of two dimensional arrays
with syntax and example.
3. Write a C program for the following using arrays
i. For multiplication of two matrices.
ii. To implement linear search technique by using an array.
iii. To implement binary search technique by using an array.
iv. To sort n numbers using Bubble sort technique.
v. Develop C program to find the maximum marks scored among the marks of N students.
vi. To add two matrices.
vii. To read the matrix and print the transpose of a matrix.
viii. To compute sum of elements of each row and column in the given matrix.
ix. To find Sum of the Diagonal Elements.
x. To find largest and lowest of n numbers and their positions.
xi. Develop a C program to convert decimal number to binary number.

MODULE-4:
1. Define string. How it is represented in a memory? Draw a memory layout with example.
2. Explain declaration and initialization of string variables with example.
3. Explain string manipulating functions or string built in functions with syntax and example.
4. Explain different ways of Printing String and also explain Character Manipulation in String.
5. Define Functions and briefly explain its types.
6. Explain Function Declaration, Function Definition and Function Call with syntax and
Example. Or explain the elements of function.
7. Briefly explain the types of Argument/Parameter passing techniques in C with example. Or
Pass by value and pass by address.
8. Explain the importance of Storage Class Specifiers for Variables in C with examples.
9. Write a C program
i. To compare two strings without using built in function.
ii. To check whether the given string is palindrome or not without using built in function.
iii. To find number of vowels, consonants, digits, white spaces and special symbols in the given
string.
iv. To concatenate or append two strings without using built in function.
v. To find the length of the given string without using built in function.
vi. To copy content of one string to another String without using inbuilt function.
vii. To convert string to uppercase using for loop.

MODULE-5:
1. Define a Pointer. Explain how pointer variable is declared, initialized and accessed and how
pointer variable is passed to a function?
2. Explain the concept of pointer to a pointer with an example.
3. What are structures? How is it different from Arrays? Explain the syntax for structure
declaration or defining a structure.
4. What is the importance of structure variable? How is it declared? How is the structure
variables initialized? With an example program, explain how to access structure members.
5. With an example program, explain the concept of Array of structures.
6. With an example program, explain the concept of nested structures.
7. Write a program
i. Using pointers to read an array of integers and prints its elements in the reverse order.
ii. Write a C program to compute the sum, mean, variance and standard deviation for
‘N’ real numbers using pointers.
iii. There is a structure called employee that holds information like employee code, name,
and date of joining. Write a program to create an array of the structure and enter some
data into it. Then ask the user to enter current date. Display the names of those
employees whose tenure is 3 or more than 3 years according to the given current date.
iv. To store and display name, roll number, date of birth and fee paid using nested
structures.

LAB PROGRAMS

1. a. Implement a C program to compute area of circle by using the concept of constant.


b. Implement a c program to compute area of triangle, given length of all three sides
2. a. Design and develop C program to find the bigger number among three numbers using ternary operator.
b. Develop a C program to find the swap to numbers without using temporary variable.
3. a. Develop C program to build simple calculator using switch.
b. Develop C program to check whether given number is Armstrong number or not.
4. a. Write a C program to evaluate quadratic equation of the form ax2+bx+c=0. Given a,b and c values
b. Develop a C program to convert decimal to binary number.
5. a. Develop a C program to find the sum of even numbers and odd numbers in the array of elements and also
compute average of all the elements of array.
b. Develop C program to find the maximum marks scored among the marks of N students.
6. Develop C program to compute sum of elements of each row in the given matrix.

7. Develop C program to perform matrix multiplication and check for the compatibility rules.

8. Develop C program to search for a key element in an array of ‘n’ elements using binary search.

9. Define structure to store student details like USN, name, percentage, and semester. Write C program to display
names of students who scored above 75%.

10. Implement C program to compute sum, variance , standard deviation of N real numbers using pointers

You might also like