Unitwise Questions - Psuc
Unitwise Questions - Psuc
What is pseudocode? Explain with example, how it is used as a problem solving tool
Define pseudocode. Write a pseudocode to find the sum and average of given three numbers
Define Algorithm. Write an algorithm to find the area and perimeter of a circle
Define flowchart. What are the symbols used in flow chart with an example
Define data type. What are the different types of data types. Explain in detail with an example.
Write a C program that computes the size of int, float, double and char
What is variable. Syntax for variable declaration and initialization with an example.
What are the formatted input and output statements/functions. Explain with examples .
Write a C program which compute the simple interest and compound interest.
UNIT-2
What is Token? What are the different types of tokens available in C language
What is an identifier (variable)? What are the rules to construct identifier (variable)?
Define keyword.
Define constant. What are the various constants available in C language explain with an example.
OPERATOR
Write a C program to find the largest of three numbers using ternary operator.
Write a C program that takes from user an arithmetic operator (+, - , * , / ) and two operands . Perform
corresponding arithmetic operation on the operands using switch statement
List all selective /decision/conditional control statements used in C. Explain any two with syntax and example
What is two-way selection statements? Explain if, if else, and nested /cascaded if-else with syntax and an
examples.
Write a C program to find whether the given number is odd or even number.
Explain multi-way decision statements or multi-way selection statements .what are the types of multi-way
decision statements (else-if ladder and switch case statements) explain with an example program.
Write a C program that takes from user an arithmetic operator (+, - , * , / ) and two operands . Perform
corresponding arithmetic operation on the operands using switch statement
Write a C program that takes three coefficients of a quadratic equation ;(ax2+bx+c) as input and compute all
possible roots and print them.
LOOP
Define a loop. What ae the different types of loops explain in detail all loops along with syntax and example.
Implement a C program to find the reverse of an integer number and check whether it is palindrome or not
write a C program to find sum of Natural numbers from 1 to N using for loops. (using all loops) ‘n’ natural number.
Write a C program to find the factorial of a given number using all loops.
What are unconditional control statements? Explain any two with syntax and example.
How break and continue unconditional statements are used in a C program, with example.
What is the difference between break and continue.
UNIT-3
What is array? Explain the declaration and initialization of one dimensional and two dimensional array with an
example.
Write a C program to read N integers into an array A and to find the sum ‘n’ natural numbers.
UNIT-4
What is function? Explain the difference between user defined and standard library functions
OR
Explain function call, function definition and function prototype with examples
Define a function. List and explain the categories of user defined functions
OR
What is function? Explain different classification of user defined functions based on parameter passing and return
type with examples
What is inter function communication.
Write a c-program using function to check whether the given number is prime or not.
What are actual parameters and formal parameters? What is the difference between them.
Write a program to find GCD and LCM of two numbers using concept of functions.
Explain recursion. and write a program to find nth term of Fibonacci series.
OR
(i)External variable (ii) Static variable (iii) Automatic variable (iv) Register variable
UNIT-5
What is pointer? Explain how the pointer variable declared and initialized with an example?
What is pointer? give the advantages and disadvantages of pointer data type.
OR
Write a C program to swap two numbers using call by address (pointers or reference) method
OR
What is a pointer? Write a C program to find the sum all elements in an array using pointer.
Explain the array of pointes with example? or Explain how pointers and arrays are related with example.
Define string. How string is declared and initialized with an example?
Explain with syntax and example, the different string manipulation library functions
Define string. List out all string manipulation function. Explain any two with example
Write a C Program to implement string copy operation STRCOPY (str1, str2) that copies string str1 to another
string str2 without using library function.
Write a C program to concatenate two strings without using built-in function strcat()
Write a C program to check whether the given string is palindrome or not without using in built function.
UNIT-6
Write a C program to display the count the number of characters, words and lines in a file.