PSPC Question Bank 02.03.23
PSPC Question Bank 02.03.23
UNIT-I
7 MARKS QUESTIONS
1. Explain about functional block diagram of computer with neat sketch.
2. Explain different types of Computer programming languages with
advantages and disadvantages
3. Explain the history and characteristics/features/benefits of C
4. Explain structure of C program with example
5. Explain different formatted input and output statements in C with
examples.
6. Explain unformatted input and output statements in C with examples
7. Draw and explain how to write, edit, compile and execute a C Program.
PROGRAMS
8. Write an algorithm, flowchart and C Program to find biggest of three
numbers.
9. Write an algorithm, flowchart and C Program to check whether the given
year is leap year or not.
10.Write an algorithm, flowchart and C Program to find roots of quadratic
equation
11.Write an algorithm, flowchart and C Program to check whether the given
number is Armstrong or not.
12.Write an algorithm, flowchart and C Program to find the reverse of a
given number
13.Write an algorithm, flowchart and C Program to check whether the given
number is palindrome or not.
14.Write an algorithm, flowchart and C Program to check whether the given
number is prime or not.
15.Write an algorithm and flowchart to find average of 10 numbers entered
by the user.
UNIT-II
7 MARKS QUESTIONS
1. List the basic data types and explain primary data types with
examples.
(fundamental data types, built-in datatypes)
2. What is a variable? What are the rules to be followed for declaring a
variable? Give examples. (identifier)
3. Explain different types of constants in C with examples
4. Explain different category of operators in C with examples
5. Explain about operator precedence and associativity with example.
6. What is mean by type conversion? Why is it necessary? Explain
about implicit and explicit type conversion, with examples.
7. Explain about various iterative statements available in C
language with suitable examples.
8. Explain different type conversions in C with examples.
9. Explain various selection statements in C Language with
examples. (conditional, branching)
10. Differentiate between else-if ladder and switch statement
in C.
11. Differentiate between pre-test and post-test loops in C.
12. Write the limitations of switch () and for () statements.
13. Explain Iterative statements in C with examples.
14. Explain about unconditional statements in C with
examples.
15. Differentiate between break and continue.
PROGRAMS
1. Write an algorithm, flowchart and C Program to generate N
primes
2. Write an algorithm, flowchart and C Program to generate
Fibonacci series
3. Write an algorithm, flowchart and C Program to generate
multiplication table
4. Write an algorithm, flowchart and C Program to perform
arithmetic operations using ‘switch’ case.
5. Write an algorithm, flowchart and C Program to check whether
the given number is strong number or not.
6. Write a C program to calculate sum and product of digits of a
number.
7. Write a C program to find power of a number using for loop.
8. Write a C program to check whether the given number is perfect
or not.
UNIT-III
7 MARKS QUESTIONS
1. Explain how to declare, initialize, access, read and print 1D array
with examples.
2. Explain how to declare, initialize, access, read and print 2 D array
with examples.
3. Differentiate between gets() and scanf() with sample code.
4. Explain any 7 string handling functions in C with examples.
PROGRAMS
5.Write a C Program for matrix multiplication
6.Write a C Program for linear search
7.Write a C Program for Binary search
8.Write a C Program for Bubble Sort.
9.Write a C Program to check whether the given string is
palindrome or not.
10. Write a C Program to find reverse of a given string
UNIT-IV
1. Explain function prototype and function declaratory with
example.
2. Explain different category of functions with examples.
3. Explain function parameters with example.
4. Explain how to pass 1D array to a function with example.
5. Explain different scopes of a variable with example.
6. Explain storage classes in C with example.
7. What is recursion? Differentiate between iteration and recursion.
8. Write a C Program to find factorial of a given number using
recursion
9. Write a C program to find GCD of two numbers using recursion.
10. Write a C Program to generate Fibonacci series using recursion.
UNIT-V
1. What is a pointer? Explain how to declare, initialize, access a
pointer variable in C with example
2. Explain parameter passing techniques in C with examples.
3. Explain Dynamic memory allocation functions with examples.
4. Explain address arithmetic with example.
5. Explain how to access an array using a pointer variable with
example.
6. Differentiate between SMA and DMA
7. What is a structure? Explain how to declare, initialize and access
a structure variable with example.
8. Differentiate between structure and union.
9. Differentiate between array and structure
10. Explain any 7 file handling function in C with examples.
11. C PROGRAM ON STRUCUTRE
12. Write a C Program to merge two files into third file.