P.P.S.C Important Questions

 Important questions for P.P.S.C Sem exams

BASICS

In detail, discuss various sized integer types supported by C. Give their storage and value ranges

What is an integer constant, floating constant and character constant? Give valid examples.

How are signed and unsigned integers stored? Explain with an example. (8M)

Explain arithmetic, logical and bitwise operators with examples. (6M) b) What is a library function?

What are its uses in C programming?

 b) What is scope of variable? Explain block scope, function scope program scope and file scope with

an example program. 

a) How are the expressions evaluated in C? Explain the role of precedence and associativity in it.

Give example. 

B) Write a short note on basic data types that the C language support. Illustrate with a C program.

a) Explain the following: (i) Machine Language (ii) Assembly Language

(iii) Low and High-Level Languages (iv) Procedural and Object-Oriented Languages. (7M)

 b) Describe the steps involved in program development process? (7M) 

3. a) Explain basic data types and their sizes with suitable examples.

Discuss about low-level, high-level, procedural and object-oriented languages with examples.

What is associativity? Explain the operator precedence. (4M) 

c) Discuss increment and decrement operators available in C and the rules associated with them.

IF FAMILY:

Differentiate between else-if and switch. Illustrate

Write a C program to illustrate switch and if-else statements.

LOOPS FAMILY

Explain the syntax of event and counter controlled loops used in C language with an example. (8M) 

Write program to check whether the given integer is palindrome or not.

Describe the pretest, posttest, counter-controlled and condition-controlled loops with examples

Explain the for loop and nested for loop with suitable examples

 Write a program using do-while loop to read the numbers until -1 and also count the positive,

negative and zeros encountered by the users. (7M) 

 Explain pre and post tests used in repetition. Write a C program to print the average of numbers

entered by the user.

Write a C program to find sum of the digits of any given positive integer.

structures &UNION

What is a union? For what kind of applications are unions are useful? Explain the unions with

an example.

Is it possible to nest the structure? Explain with example.

Write a program using structures to read and display the information about entire faculty

of a particular department. 

What is the advantage of structure? Differentiate it with union and arrays

STRING 

Explain reversing string, concatenating strings, extracting substring from a string operations.

POINTERS

What is address arithmetic in C? Explain different arithmetic operations that can be performed

on pointer

ARRAYS:

 Write a program to find the mean of ‘n’ numbers using arrays

Write a program to find second highest and smallest number in the given array.

b) Write a C program to check whether the given matrix is symmetric or not

What is an array? What are the different ways of initializing the arrays?

What are the disadvantages of an array? Discuss.

POINTER

How are generic pointers different from pointer variables and also differentiate ptr++ and ++ptr.

How to initialize and access pointer variable? Explain pointer to a function with example.

FUNCTIONS

Explain various types of functions supported by C language?

Give example for each of the C function.

b) Write a recursive function to display the first n terms of the Fibonacci series:

0 1 1 2 3 5 8 13 …. Also write the main program.

What is recursive function? Explain different types of recursion with examples. 

 What are various standard library input/output functions used in C language?

Explain with simple program.

How to pass pointers to functions? Explain with an example program. 

 Write a short note on Inter function communication and streams.

What is dynamic memory management? Explain different dynamic memory management functions

available in C language.

       P.P.S.C study materials : Download now

      

Previous Post Next Post