0% found this document useful (0 votes)
491 views6 pages

PPS Question Bank

The document contains questions from various modules related to C programming. It includes questions on basic concepts like data types, operators, control flow statements, functions and more advanced topics like arrays, strings, structures, pointers, recursion etc. It also lists programs related to these topics to practice writing code for tasks like calculating math operations, sorting, searching, string manipulation etc. The questions range from short answers to explanations with examples to programs to solve problems.

Uploaded by

Purva
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)
491 views6 pages

PPS Question Bank

The document contains questions from various modules related to C programming. It includes questions on basic concepts like data types, operators, control flow statements, functions and more advanced topics like arrays, strings, structures, pointers, recursion etc. It also lists programs related to these topics to practice writing code for tasks like calculating math operations, sorting, searching, string manipulation etc. The questions range from short answers to explanations with examples to programs to solve problems.

Uploaded by

Purva
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/ 6

PPS question Bank

Module 1 and 2
1.Give difference between compiler & interpreter.
2. Give the difference between a while statement and a Do- while statement in
C?
3.Demonstrate the usage of a switch statement with an example.
4.Explain the different kinds of loops available in C with examples.
5.What are operators? Explain different types of operators in C?
6.What is a branching statement? Explain various types of branching.

7.Write short notes on the following:

(i) Data Type

(ii) Constant

(iii) Variable

8. Explain the basic structure of a C program with example.

9. What is expression? Explain the role of operator precedence?

10.What is a loop? Explain various types of loop with syntax and example.

11.Write short notes on printf() and scanf() functions. What are the different ways you
can write?

12.Explain arithmetic and conditional operators using in c?

13. What is flowchart?Explain with suitable example.

14. Explain formatted input and output statement with examples

15. Describe features of c programming.

16. Short note on:

a)Break statement

b)Continue statement

c)Goto statement

d)nested if else
17.Write c program to print table for the given number using for loop.

18. Write a program to add the entered number(e.g. 1983=1+9+8+3=21)

19. Write a program to find out given number is palindrome or not.

20. Write a program to find out given number is Armstrong or not.

(153=1*1*1+ 5*5*5+3*3*3)

21. Write a program to find out leap year

22. Write a program to find prime number

23. Write a program to design following pattern

**

***

****

*****

24. How does a C program execute?

Module 3 and 5
3 marks Questions
1. Difference between string and Array.
2. Syntax for string and array.
3. Explain four string functions which are available in the library.
4. What is prototype function.
5. How to pass arguments to a function.
6. How to initialize 2-D array
7. What is a relation between ARRAYS and pointers? Explain with example
8. For what purpose ‘\0’ is used in string operations explain with suitable
example.
9. Explain sizeof operator with example.
10. What are the Different ways to initialize strings.
11. What is the output of the following program.
#include <stdio.h>
int main()
{
int num[] = {2,8,7,6,0};
int i;
for (i=0;i<5;i++) {
printf(“\n Array Element num [%d] = %d”,i, num[i]); }
return 0; }

12. What is function.Difference between user defined function and library function.
13. What is prototype function.

7 or 8 Marks Questions.
1. State and explain different types of string functions with example.
2. Define array. Explain different types of array in detail.
3. Write a C language program to enter n elements in array and find
second largest number from array.
4. Write a C language program to read two matrices and add
them.
5. Write Program to print the accepted string using gets() and
puts().
6. Program to convert lowercase to uppercase and uppercase to
lowercase using string function.
7. What are the advantages and disadvantages of using an array.
8. Define string. How string is declared and initialized ? Explain
string input/output functions with an example.
9. Write a C Program to implement string copy operation
STRCOPY(str1,str2) that copies string str1 to another string str2
without using library function.
10. Write a C program to concatenate two strings without using
built-in function strcat().
11. Differentiate between call by value and call by reference with
examples.
12. Explain function call, function definition and function prototype
with examples.
13. Write a program in „C‟ using functions to swap two numbers .
14. Explain two categories/types of argument passing techniques,
with examples .
15. Explain Functions with no arguments and no return value.
16. Explain Functions with arguments and no return value.
17. Explain Functions with arguments and return value.
18. Explain Functions with no arguments and return value.

Module 6, 7 and 8

1. How does recursion work in C Programming? Explain it with Example.


2. What are the advantages and disadvantages of Recursion?
3. What is a structure? How to create a Structure? How to declare Structure
variables?How to initialize structure members? How to access structure
elements?
4. Why do we use structs in C?
5. What is an array of structures?
6. How to declare an array of structures in C?
7. How to access the element from the array of structures in C?
8. What is a variable?Explain Local and global variables with examples.
9. Distinguish between Local variable and global variable.
10. Explain Dynamic memory allocation in C.
11. What is Pointer? What are the advantages of pointers?
12. What are the applications of pointers in the C language?
13. What is Null Pointer?
14. What are the applications of Null Pointer?
15. What is Double Pointer?

Programs:

Program to compute Quotient and Remainder in Division operation.

Program to find sum and Average of marks of 3 subjects.

Program to calculate Area_of_Circle and Circumference_of_circle (Without using math.h).


Program to calculate Simple Interest and Compound Interest ( use math.h ).

Program to check whether a number is Even or Odd.

Program to find Largest of 3 numbers.

Program to calculate sum of all the even numbers between 1 and 100.

Program to find Roots of a Quadratic equation.

Program to find GCD of two numbers.

Program to Reverse a number ( eg: 349875 ---- 578934).

Program to check that a given year is Leap year or not.

Program to display Fibonacci sequence.

Program to calculate Power of a number.

Program to check whether a number is Armstrong number or not.

Program to convert Binary number to Decimal number and vice-versa.

Program to make simple Calculator using switch case.

Program to find Largest element of an Array.

Program to Calculate average using Arrays.

Program to find Transpose of a Matrix.

Program to add Matrix using multi-dimentional Arrays.

Program to concatenate two strings.

Program to find length of a String.

Program to count number of vowels in string.

Program to Sort Elements in Lexicographical order ( Dictionary Order).

Program to Swap numbers in Cyclic Order using Call by Reference.


Program to find Factorial of a number using Recursion.

Program to Reverse a sentence using Recursion

Program to store information (name,roll_no and marks) of a student using Structure.

Program to add Distances ( in feet-inch) system using Structures.

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