0% found this document useful (0 votes)
54 views2 pages

IMP Questions

The document contains questions from 5 units related to the C programming language. It covers topics such as computer hardware, operating systems, data types, operators, conditional statements, loops, functions, arrays, structures, pointers, files, and linked lists. Questions include defining concepts, differentiating between terms, writing programs to demonstrate specific functions, and explaining pre-processor directives.

Uploaded by

Abhirath kumar
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)
54 views2 pages

IMP Questions

The document contains questions from 5 units related to the C programming language. It covers topics such as computer hardware, operating systems, data types, operators, conditional statements, loops, functions, arrays, structures, pointers, files, and linked lists. Questions include defining concepts, differentiating between terms, writing programs to demonstrate specific functions, and explaining pre-processor directives.

Uploaded by

Abhirath kumar
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/ 2

PPS IMPORTANT QUESTIONS

Unit-1
1- Draw a neat block diagram of a digital computer and explain briefly each part.
2- What is Operating System? Explain the types of OS (multiprogramming, multitasking,
multiprocessing)
3- Differentiate between the followings:
a- High level language and low level language
b- Compiler and Interpreter
4. Write short notes on flowchart. Explain difference between flowcharts an algorithm.
5. Explain in detail about fundamental data types in ‘C’ language, mentioning their range, space they
occupy in memory and keyword used for their representation in programming.

Unit-2
1- What is an operator? What are the various types of relational operator, logical operator, bitwise
operator, unary operator and conditional operators? Clearly state their meaning and example of
each.
2- Discuss the operator precedence and associativity of the operators.
3- Differentiate in between implicit type conversion and explicit type casting with suitable example.
4- Define the conditional Branching statement in c programming. Write a program to simulate
arithmetic calculator using switch statement.

Unit-3
1- Explain all program loop with help of syntax, flowchart and an example, available in ‘C’ programming.
2- Write a program to find out the greatest number out of three numbers.
3- What is the difference between break and continue statement, explain with programming example?
4- WAP to calculate the sum of digits of a given number. (using recursion)
5- WAP to check whether given number is palindrome or not.
6- Write a Program to find the entered number is Armstrong number or not.
7- WAP to check whether given number is prime or not.
8- WAP to print Fibonacci series up to n terms using recursion.
9- Write a program to print following patterns:
a.
* **** 1 1 A
*** *** 23 22 AB
***** ** 456 333 ABC
******* * 7 8 9 10 4444 ABCD
ABCDE

10- What is the difference between call by value and call by reference? Explain with programming
example.
OR
In how many ways, parameters can be passed to a function? Explain with programming example.
OR
Explain the concept of call by reference using the pointer.

11- What is recursion? WAP to calculate factorial of an entered number using recursive function.
12- Explain the storage classes in C with proper example
Unit-4
1- Write a C program to find out largest element in given list of elements.
2- Write a C program to search a given element in a given list of elements using linear and binary search
technique.
3- Write a C program to sort a given list of elements. (using bubble sort only)
4- Write a C program to multiply two matrices of which order is entered by user.
5- What is structure in C? Declare a structure named book containing member b_name, b_id, and price.
Create an array of 30 such students. Write a program to read and display the content of the array.
6- What is the difference between structure and union? Explain with example.
7- Explain dynamic memory allocation functions used in C. (malloc, calloc, realloc, free)

Unit-5

1- What are pointers? Why are they required? How do you declare and initialize them?
2- What is file? Explain various file opening modes and various file handling functions in detail.
3- Explain file handling and write a program for copying the content of one file into another
file.
4- What is C pre-processor? List all pre-processor directives and explain any two with suitable example
5- Explain the concept of linked list and its type in detail.

You might also like