Thursday, December 12, 2019

IMP Q. of ‘C’ Language - DCA 2019-20


IMP Q. of ‘C’ Language - DCA 2019-20

UNIT-I
Introduction
1.   What are data-types in C language? Explain with their types.
2.   What are Identifiers & Keywords in C? Explain with example.
3.   What are Escape sequence characters (Backslash characters/Character constants)?
4.   Why header files are included in the C programs? Explain different header files with their associated functions.
5.   Short Notes on:
      (a)     User defined data-types
      (b)     Format Specifiers



UNIT-II
Operators and Expressions
1.   Explain all types of operators in C language.
2.   What do you understand by operator precedence & its associativity?
3.   Explain Unary & Binary operators.
4.   What are differences between Relational & Logical operators?
5.   What is difference between = and = = in C program?



UNIT-III
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, switch and goto 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


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.


UNIT-IV
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.


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




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 ! ~~~~~~~~

1 comment:

  1. Mobile Repairing Certification Program @Low Fees- ?? We are Best Mobile Repairing Institute in Delhi ?? 12,000+ Students Already Trained, Admission Open, Hurry!

    Computer Hardware Course

    Mobile Repairing Course

    Laptop Repairing Course

    ReplyDelete