0% found this document useful (0 votes)
42 views5 pages

Unitwise Questions - Psuc

The document is a comprehensive guide covering various fundamental concepts in C programming, including pseudocode, algorithms, data types, control statements, loops, arrays, functions, pointers, strings, and file handling. It provides definitions, examples, and C program implementations for each topic, facilitating a structured understanding of programming principles. Additionally, it compares different programming constructs and explains their applications in problem-solving.
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)
42 views5 pages

Unitwise Questions - Psuc

The document is a comprehensive guide covering various fundamental concepts in C programming, including pseudocode, algorithms, data types, control statements, loops, arrays, functions, pointers, strings, and file handling. It provides definitions, examples, and C program implementations for each topic, facilitating a structured understanding of programming principles. Additionally, it compares different programming constructs and explains their applications in problem-solving.
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/ 5

UNIT-1

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

What is an Algorithm? Write an algorithm to find the largest of 3 numbers

Compare pseudocode with an algorithm

Define flowchart. What are the symbols used in flow chart with an example

Draw the flowchart and write a C program to compute simple interest

Write an algorithm and flowchart for leap year.

What are the different types of languages. What is symbolic language.

Explain the basic structure of a C program with an example

Define data type. What are the different types of data types. Explain in detail with an example.

Define modifier/qualifier. Types of modifiers/qualifiers in detail.

What are basic data types available in C?

Write a C program that computes the size of int, float, double and char

What is variable? List the restrictions on the variable names

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 in C to find the area and perimeter of a rectangle

Write a C program which compute the simple interest and compound interest.

Write a C program to find the area and perimeter of triangle

Write a C program in C to find the area and perimeter of a circle

Write a C program in C which convert Celsius to Fahrenheit .

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.

Explain about symbolic constant with an example.

OPERATOR

Define operator. List all the operators used in C. Give examples


What is an expression? Evaluate the following expressions

i) a + = b * = C - = 5 where a=3 b=5 and c=8

Define i) Associativity ii) Precedence

What is type conversion? Explain two types of conversion with examples.

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

DECISION/SELECTIVE CONTROL STATEMENT(IF, IF ELSE,NESTED IF -ELSE, SWTICH CASE,ELSE-IF LADDER)

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 the biggest of three numbers.

Write a C program to find whether the given number is odd or even number.

Write a C program to find whether the given number is a prime or not.

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.

Explain switch statement with syntax and example.

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.

Explain else if ladder in detail with an example.

What is the difference between switch statement and else if ladder

Write a C program to display the result of a student. (using else-if ladder).

What is dangling else problem? Explain how to handle this in C programming.

LOOP

Define a loop. What ae the different types of loops explain in detail all loops along with syntax and example.

What is pre test loop and post test loop.

List the differences between while loop and do-while loop.

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.

Write a C program to demonstrate the use of unconditional goto statement

How break and continue unconditional statements are used in a C program, with example.
What is the difference between break and continue.

Write a C program to find LCM and GCD of two numbers .

UNIT-3

What is array? Explain the declaration and initialization of one dimensional and two dimensional array with an
example.

List out the advantages of an array.

What are the different types of initializations of an 1D array.

Write a C program to read N integers into an array A and to find the sum ‘n’ natural numbers.

Write a C program to insert , delete and search an element in an array.

Write a C program to search an element in an array by using linear search.

Explain in detail about character arrays.

Write a C program to find operations on matrix are

i) Addition ii) Subtraction iii) Multiplication iv)transpose v) unit vi)lower/upper matrix

Write a C program to find the sum and average of n integer numbers

Write a C program to find the largest and smallest element in an array

Explain in detail about multi-dimensional array.

How 1D array is passed a parameter to function with an example.

Write a C program to pass array as function argument.

UNIT-4

What is function? Explain the difference between user defined and standard library functions

What are advantages of function.

Explain the different elements of user defined functions in detail

OR

Explain function call, function definition and function prototype with examples

Explain two types of argument passing techniques, with examples

Differentiate between call by value and call by reference with examples

Define a function. List and explain the categories of user defined functions

What is function? Explain the type of functions based on parameters

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 C program to find the factorial of a number using functions

Write a program to find GCD and LCM of two numbers using concept of functions.

What are the Math standard library functions.

What is Recursion? Write a C program to factorial of given number using recursion.

Explain recursion. and write a program to find nth term of Fibonacci series.

What are the advantages and disadvantages of recursive function.

What are the different types of Macros. Explain in detail

What is preprocessor directive? Explain #define and #include preprocessor directive.

List out the difference between Macro and function.

What are the storage classes explain in detail.

OR

Give the scope and life time of the following

(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.

How variable can be accessed through pointer.

What is the difference between declaration and redirection.

Explain in detail about the pointer-pointer with an example.

How is pointer variable is passed as an parameter to the function with an example.

OR

Write a C program to swap two numbers using call by address (pointers or reference) method

OR

Explain pointer for inter function communication.

What is pointer arithmetic and arrays.

What are the valid arithmetic operations on pointers.

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 string input/output functions 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 copy a string to another string

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

What is File? What are the different file streams explain.

What is the difference between text files and binary files.

What are the different file operating modes.

What are the various file stream file processing.

What are the standard I/O functions with an example.

What are the formatted I/O functions with an example.

What are the file positioning functions with an example.

What are the character I/O functions with an example.

What are the binary I/O functions with an example.

Explain about command line arguments with an example.

Write a C program to display the count the number of characters, words and lines in a file.

Write a C program to read content of one file and display.

Write a C program to copy content of one file to another file.

Write a C Program to append one file to another file.

Write a C Program to reverse the first n characters of a file.

You might also like