Important Questions of ‘C’ Language -
PGDCA 2019-20
UNIT-I
Introduction
1.
What are data-types in C language? Explain with their types.
2.
Explain operators with their precedence & associativity.
3.
Explain Unary & Binary operators.
4.
What are differences between Relational & Logical operators?
5.
What are Identifiers & Keywords in C? Explain with example.
6.
What are Escape sequence characters (Backslash characters/Character constants)?
7.
Why header files are included in the C programs? Explain different header files
with their associated functions.
8.
Short Notes on:
(a) User defined
data-types
(b) Format
Specifiers
(c) Compound
Statements
UNIT-II
Control Structures
1.
What do you mean by control structures in C language? Explain with their types.
2.
Explain loop control structures.
3.
Explain if—else and switch statements.
4.
What will happen when a break statement is occurred in switch and loop
statements?
5.
Write differences between following:
(a) Break &
Continue
(b) While & Do-while
(c) For &
Do-while
Function
1.
What is function? Explain its advantage using in program.
2.
What are User defined functions? Explain differences between actual &
formal parameter.
3.
What do you mean by Call-by-value and Call-by-reference? Explain with suitable
examples.
4.
Write short note on Function Prototyping with an example. Also differentiate between
function-definition & function-declaration.
5.
What do you mean by Library functions? Explain any 5 Library functions.
6.
What is Recursion? Explain with an example.
UNIT-III
Arrays
1. Define
Arrays with their uses and advantages.
2. Write differences between 1-D array & 2-D
array.
3.
Explain array of string using a program.
4.
Explain Strings in ‘C’ with a suitable example.
5. Explain any 5 string functions.
Pointers
1.
What are Pointers? Explain their uses and advantages.
2.
Write differences between Array and Pointer.
3.
Explain Array of Pointers.
4.
Write short note on Pointer and String.
5.
Explain Pointer to Pointer, Void
Pointers and Pointer Arithmetic?
6. Write short notes on Memory Address Operator
(&) and Pointer Operator (*).
UNIT-IV
Structure and Union
1.
Explain Structure in ‘C’ with an example.
2.
Explain Union with its scope (utility) with an example.
3.
Write differences between Structure and Union.
4.
Write differences between Structure and Array.
5.
Explain Array of Structures and Structure
within Structure using examples.
6. How to create user defined data types?
UNIT-V
Dynamic Memory Allocation
1. Explain Static Memory Allocation and Dynamic
Memory Allocation.
2. List
out and explain functions used in Dynamic Memory Allocation.
File Handling
1. Explain Input/Output operations on files.
2. Explain
functions used in File Handling in C.
3. Differentiate between Text and Binary files.
4. Explain error handling in files.
5. Explain buffered and un-buffered files.
6. Explain File Pointer in File I/O.
7.
Write short notes on fputc( ) and fgetc( ).
~~~~~~~~ Best of Luck ! ~~~~~~~~
Frequently asking programs in ‘C’:
(1) WAP
to calculate Simple & Compound Interest.
(2) WAP
to check PRIME Number.
(3) WAP
to calculate Factorial of a Number.
(4) WAP
to check PALINDROME Number.
(5) WAP
to check ARMSTRONG Number.
(6) WAP
to calculate REVERSE of given Number.
(7) WAP
to print FIBONACCI Series.
(8) WAP
to find Largest & Smallest Number in a List.
(9) WAP
to SEARCH a Number in a List.
(10)
WAP to SORT (arrange) a Number List.
(11)
WAP to print TRANSPOSE of given Matrix.
(12)
WAP to calculate Addition & Multiplication of 2 Matrices.
(13)
WAP to convert Upper to Lower Case & vice versa.
(14)
WAP to check Palindrome String.
(15)
WAP to copy a string from one variable to another.
(16) WAP
to compare between 2 strings.
(17)
WAP to sort a string list.
(18)
WAP for swapping of 2 numbers using call-by-reference (UDF).
(29)
WAP to find factorial of a number using recursion.
(20)
WAP to explain arithmetic operations on pointers.
(21)
WAP to explain Structure & Union.
~~~~~~~~ Best of Luck ! ~~~~~~~~
Mobile Repairing Certification Program @Low Fees- ?? We are Best Mobile Repairing Institute in Delhi ?? 12,000+ Students Already Trained, Admission Open, Hurry!
ReplyDeleteComputer Hardware Course
Mobile Repairing Course
Laptop Repairing Course