cp important questions 2015
TRANSCRIPT
7/23/2019 Cp Important Questions 2015
http://slidepdf.com/reader/full/cp-important-questions-2015 1/4
1 | P a g e
UNIT 1Short answer Questions
1.Explain about Time sharing computing system2.Explain about distributed computing system3.Explain fow chart4.Explain Algorithm.Explain a!compiler b)interpreter c)loader d)linker
7.List various data types in c langage
8.what is ternary operator
9. Explain unconditional loops
1. Explain the di"erence between while and do while loop#11. $hat is the di"erence between brea% and continue statement. Explain it with Example#12 &riefy Explain goto statement with an Example.
1!."rite a # $rogram to print all $er%ect &umbers below 1.
Long answer questions1.Explain about various #omputing Environments'
(.Explain $rogram evelopment steps
!. "hat is type conversion* Explain brie%ly about implicit and explicit conversions*
+.Explain various operators in c language in detail
,.Explain various data types in c language in detail
7.Explain recedence and -ssociativity o% operators
8.Explain di%%erent control or decision making statements
9.Explain unconditional loops
1.Explain various loops
11. "rite about ranching #ontrol /tatements with examples.
1(. Explain with example switch and %or statements.
1!. "rite a # $rogram to print prime numbers between 1 and 1.
10. "rite a $rogram in # to read a set o% n single digits and converts them into single
decimal integer. or example the program should convert the set o% + digits
21'('!'0'+3 to integer 1(!0+.
1+. Explain the bitwise operators with suitable examples.
UNIT –IIShort answer Questions
1.e%ine %unction *
(."hat is the di%%erence between extern and gobal variables.
!.e%ine recursion and what are the limitations o% recursive %unctions
0. Explain di"erent types o' type (uali)ers in *.
+.Explain static storage class ,. Explain register storage class
7. 4s it better to use a macro or a %unction*
Long answer questions1.e%ine %unction *Explain di%%erent types o% %unctions with sample program
(.e%ine di%%erent types o% user de%ined %unctions
!.Explain recursion with a program and what are the limitations o% recursive %unctions
0."hat is a storage class* Explain di%%erent types with examples
+."hat are various pre processor commands
,."hat are various parameter passing techni5ues
7 . "rite short notes on scope o% variables*8. "hat is %unction parameter* Explain di%%erent types o% parameters in # %unctions.
7/23/2019 Cp Important Questions 2015
http://slidepdf.com/reader/full/cp-important-questions-2015 2/4
2 | P a g e
UNIT- IIIShort answer Questions
1.e%ine array* Explain how it is di%%erent %rom ordinary variable
(.Explain in brie% about multidimensional array
!.write a short note on call by value0.e%ine string* Explain the procedure to declare a string
+. "rite a program to %ind length o% a string using user de%ined %unction
,.what are various %unctions to compare strings
7. "hy is it necessary to give the si6e o% an array in an array declaration*
Long answer questions1."hat is an array * Explain various types with an example %or each type
(. "rite a c program %or multiplying two matrices.
!. i%%erentiate between call by value and call by re%erence with suitable examples*
0.e%ine string. Explain various input out %unction to handle strings
+.Explain various string handling or string manipulating %unctions
,. "rite a program that would check whether the elements in a given array aredistinct or not.
7. "hat is an array* Explain the declaration and initiali6ation o% one and two
dimensional arrays with example.
UNIT-IVShort answer Questions
1."hat is a pointer*
(.Explain pointer to a %unctions
!."hat is a void pointer*
0. "hat is the di%%erence between an array and pointer*+. . "hat is meant by dangling pointer*
,. "rite any two dynamic memory allocation %unctions*
7. e%ine point to pointer*
8. Explain about pointer arithmetic*
9."hich memory allocation techni5ue is to be employed %or e%%ective memory utli6ation
Long answer questions1"hat is a pointer * Explain -rray and pointer
(.Explain about various pointer arithmetic and pointer to pointer
!.Explain about static and dynamic memory allocation.Explain about
a)malloc) b)calloc) c)realloc d)%ree0.Explain various applications o% pointers
+.Explain the %ollowing a)$ointer to void b)pointer to %unction
,."rite and explain a program %or pointer to multi dimensional arrays.
7. "rite %unctions in # using pointers that would et an input string and computes
its length*
8. "rite a # $rogram that would accept a string o% any number o% characters.
$rovide the %unction to count the number o% vowels in the given string*
9. "rite a # program to swap two numbers using call by pointers method.
1. "rite a program which will read a string and rewrite it in the alphabetical order.
or example the word /:4& should be written as 4&:/*
7/23/2019 Cp Important Questions 2015
http://slidepdf.com/reader/full/cp-important-questions-2015 3/4
3 | P a g e
UNIT-VShort answer Questions
1."hat is a %ile * "hat are various types o% %iles.
(.istinguish between a text %ile and a binary %ile.
!."hat is a union0."hat is the %unctionality o% %open)
+."rite a short note on %seek)
,."hat are the advantages o% structures over arrays
7."hats is a command line argument
8."hat is a structure* ive its advantage* ive an example o% creating and accessing members o% a
structure*
9."rite a short note on ype e%inition
1.Explain Enumerated ata ypes with an example
11."hat is a bit %ield.
1(."hat are di%%erent %ile opening modes
1!."hat the %unction used to read and write date into a binary %ile10. what is sel% re%erential structure
1+."hats is a nested structure
1,."hat are the areas o% application o% structures
17.Explain Enumerated ata ypes with an example
18. Explain +ile Positioning +unctions#
19 "rite short notes on random access %ile %unctions.
(. Explain about typede%*
(1. "rite the di%%erence between structure and union*
Long answer questions1 iscuss the di%%erences between a structure and union in c with an example *
(.evelop a c program that reads two complex numbers calls a %unction %or adding these two complex
numbers and displays the result. represent the complex number using a structure in #*
!. what is sel% re%erential structure * how it di%%ers %rom nested structures *
0.Explain &ested structures with an example
+) "rite a structure %or the #ollege data. #ollege contains the %ollowing %ields;
a. #ollege code (characters)'
b. #ollege &ame'
c. year o% establishment'
number o% courses and courses.
- #ollege can o%%er 1 to + courses. Each course is associated with course name /tring)'
duration' number o% students. he number o% students in the college is sum o% number o% students in allthe courses in the college.
,. "hat do you mean by bit %ields* <ow bit %ields are di%%erent %rom structures*
7.<ow many possible ways one can access the members o% a structure using a structure variable and a
pointer to a structure variable* 4llustrate with examples.
8 i%%erentiate between sel% re%erential and nested structures with suitable examples.
9.Explain command line arguments with s program
1. Explain di%%erent modes that can be provided as a parameter to the %open) %unction.
11. what are the ways to set the %ile pointer randomly in a %ile *
1( "rite a c program to copy the contents o% one %ile to another %ile.
1! List and explain the streams %unctions %or binary %iles along with their prototypes.
10 List and explain the streams %unctions %or text %iles along with their prototypes.1+ "hat are the di%%erent 4nput=output operations on iles *
1, Elaborate %ile handling %unctions in >#? with the help o% sample code*
17 Explain %ile error handling %unctions and %ile positioning %unctions
7/23/2019 Cp Important Questions 2015
http://slidepdf.com/reader/full/cp-important-questions-2015 4/4
4 | P a g e
18. iscuss about sel% re%erential structures.
19. "hat is a /tructure* e%ine a structure called salary and another structure called allowance. @se the
structure variable allowance in salary structure and write program to read data into the structure variables
(. "rite a recursive %unction that would scan the created structure array and print the complete date' day'
month and year in%ormation i% the date is an even number*
(1 wo %iles -- 1 and -- ( contain sorted list o% integers. "rite a program to produce a third %ile
-- which hold a single sorted' merged list o% these two lists.