Imp. Questions Pcds Finale

of 14
8 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
Imp. Questions Pcds Finale
Document Share
Document Tags
Document Transcript
  Important Questions{ OLD DUMPS} UNIT 1 1. (a) Define in detail about algorithms?(b) Define flowchart.(c) What are the different stages in the program development? [3+3+10 marks](May/june 2008 Set 1)2. Explain Analysis and Implementation of Algorithms?3.Define in detail about Efficiency of algorithms?4.Explain problem Solving aspect and analysis of algorithms?5.Explain Top Down Design and Program Verification in detail? UNIT 2 1 .Explain C character set and Tokens in detail?   2. (a) Explain the working of Unary Operator with example.(b) Explain the working of Binary Operator with example.(c) Explain the working of assignment Operator with example.(d) Explain the working of ternary Operator with example. [4+4+4+4marks](May/june 2008 Set 2)3. What are the different types of control statements available 'C'. Explain them with anexample? [16](May/june 2008 Set 3)4. (a) Define Algorithm.(b) What is the use of flowchart ?(c) What are the different steps followed in the program development? [3+3+10marks](May/june 2008 Set 4)5. (a) Write a 'C' program to find the squares of N numbers using do - while.(b) Write a 'C' program to convert Decimal Number to Octal Number. [8+8marks](May/june 2009 Set 1)6. What are the different format specifiers available for Input and Outputstatements.Explain with an example? [16 marks](May/june 2009 Set 2)7. (a) Mention the use of sizeof and pointer operator in 'C'. Explain them with a program.(b) How comma and member selection operators used in 'C'. Explain with program.[8+8 marks](May/june 2009 Set 3)8. How algorithm is different from flowchart? Write an algorithm and draw flowchartfor finding greatest among three given numbers. [8+8](May/june 2009 Set 4)9. Write about space requirements for variables of different data types. [16 marks](juneSupplementary 2009 Set 1)10. (a) What is meant by operator precedence? What are the relative precedence of thearithmetic operators?(b) What is the associativity of the arithmetic operators?(c) How can the value of an expression be converted to a different data types? What isthis called?(d) What are unary operators? Explain example for each. [4+4+4+4 marks]11. Write a program to find the sum of all digits in a given number. Repeat this operationsuccessively until the result is a single digit. [16]12. Write a C program to print the lower triangular of a given square matrix. [16 marks]  13. (a) Write a program to determine and print the sum of the following harmonic seriesfor a given value of n:1+1/2+1/3+.....+1/n.(b) What are the logical operators used in C and illustrate with examples. [8+8 marks]14. (a) What is a string constant? How do string constants di er from character constants?Do string constants represent numerical Values?(b) Summarize the standard escape sequences in C. Describe them.(c) What is a variable? How can variables be characterized? Give the rules for variable declaration.(d) What is the purpose of type declarations? What are the components of Type declaration? [4+4+4+4 marks]15. (a) Explain the following & illustrate it with an example each.i. Increment & Decrement operator.ii. Conditional operator.iii. Bitwise operator.iv. Assignment operator.(b) State the rules that applied while evaluating expression in automatic typeconversion. [12+4 marks]16. (a) In what way array is different from an ordinary variable?(b) What conditions must be satisfied by the entire elements of any given array?(c) What are subscripts? How are they written? What restrictions apply to the valuesthat can be assigned to subscripts?(d) What advantage is there in defining an array size in terms of a symbolic constantrather than a fixed integer quantity?(e) Write a program to find the largest element in an array. [3+2+3+3+5 marks]17. (a) What is a preprocessor directive.(b) Distinguish between function and preprocessor directive.(c) What is the significance of conditional compilation.(d) How does the undefining of a pre-defined macro done. [4+4+4+4 marks]18. (a) What do you mean by functions? Give the structure of the functions and explainabout the arguments and their return values.(b) Write a C program that uses a function to sort an array of integers. [8+8 marks]19. (a) What is a string constant? How do string constants differ from character constants?Do string constants represent numerical Values?(b) Summarize the standard escape sequences in C. Describe them.(c) What is a variable? How can variables be characterized? Give the rules for variable declaration.(d) What is the purpose of type declarations? What are the components of Type declaration? [4+4+4+4 marks]20. (a) Explain the following & illustrate it with an example each.i. Increment & Decrement operator.ii. Conditional operator.iii. Bitwise operator.iv. Assignment operator.(b) State the rules that applied while evaluating expression in automatic typeconversion. [12+4 marks]21. (a) Describe the two different forms of the if-else statement. How do they differ?  (b) Compare the use of the if-else statement with use of the ?: operator. In particular,in what way can the ?: operator be used in place of an if-else statement?(c) Admission to a professional course is subject to the following conditions:i. marks in maths >= 60.ii. marks in physics >= 50.iii. marks in chemistry >= 40.iv. total in all three subjects >= 200.Given the marks in three subjects, write a C program to process the application to findwhether eligible or not. [5+6+5]22. (a) What are the general characteristics of C?(b) Give and Explain the structure of a C program?(c) Write a C program to print the Pascal's triangle. [4+4+8 marks]23. (a) Give some important points while using return statement.(b) Write short notes on scope of a variable. [8+8 marks]24. What is the advantage of using functions. Write a 'C' program to explain about built infunctions with an example. [16]25. (a) Write short notes on auto and static storage classes.(b) Write short notes on call by reference . [8+8 marks]26. Write a program to find sum of given series by using function with argument andreturn value e = 2 + 3/1! - 6/2! + 9/3! - 12/4! .....! [16]27. Write a program to evaluate the equation s = sqr(m() + n() ) using function. [16marks]28. How automatic and static variables are used in different blocks. Explain with a program. [16]29. Write a program to find sum of given series by using function with argument andreturn value e = 2 + 3/1! - 6/2! + 9/3! - 12/4! .....! [16]30. What is a function ? What are the different types of functions? Explain function withno argument and no return type with an example. [16]31. (a) Write a program to demonstrate passing an array argument to a function. Consider the problem of finding largest of N numbers defined in an array.(b) Write a recursive function power (base, exponent) that when invoked returns baseexponent. [8+8 marks]32. (a) Distinguish between user defined and built-in functions.(b) What is meant by function prototype. Give an example function prototype.[8+8marks]33. (a) Distinguish between getchar and scanf functions for reading strings.(b) Write a program to count the number of words, lines and characters in a text.[8+8marks]34. (a) What do you mean by functions? Give the structure of the functions and explainabout the arguments and their return values.(b) Write a C program that uses a function to sort an array of integers. [8+8 marks] UNIT 3,4 1. Explain an array , array declaration and features of array. [16 marks] (May/June 2008-SET 1 & 2)  2. Explain call by value and call by reference and nesting of function. [16 marks](May/June 2008-SET 2)OR Explain in detail about pass by values and pass by reference. Explain with a sample program. [8 marks] (April/May 2003-SET 1)3. Write a program to swap the contents of given variable. [16 marks] (May/June 2008-SET 3)4. (a) Write short notes on pointer to void.(b) Write short notes on Address Arithmetic. [8+8 marks] (May/June 2008-SET 3)5. Define Multi dimensional array with an example. [16 marks] (May/June 2008-SET 4)6. Write short notes on pointers. [16 marks] (May/June 2008-SET 1) (June 2009-SET 1)7. What is the advantage of using arrays ? Give syntax for declaration, accessing and printing one-dimensional array? [16 marks] (May/June 2008-SET 2)8. Define an array. What are the different types of arrays. Explain. [16 marks](May/June 2008-SET 3)9. Write short notes on call by reference. [8 marks] (May/June 2008-SET 3)10. How can a list of strings be stored in an two - dimensional array? What libraryfunctions are available to simplify string processing? [16 marks] (June 2009-SET 2)11. Write a program to reverse the strings stored in array of pointers. [16 marks] (June2009-SET 3)12. Write a C program to explain call by value and call by reference concept. [10 marks](June 2009-SET 4)13. (a) Write a program to accept N numbers and print whether the number is even or oddusing array.(b) Write short notes on one dimensional array. [10+6 marks] (June 2009-SET 4)14. (a) Explain how strings can be stored using a multidimensional arrays?(b) What are the string in-built functions available? Write in detail about each one of them with an example.(c) The names of employees of an organization are stored in three arrays, namely, firstname, second name, and last name. Write a program to concatenate the three partsinto one string to be called name. [16 marks] (June 2005)15. (a) Explain the process of declaring and initializing pointers. Give an example.(b) Write a C program that uses a pointer as a function argument. [16 marks] (June2005)16. Write a C program that uses a function to sort an array of integers. [8 marks](April/May 2003-SET 2)17. a) Distinguish between getchar and scanf functions for reading strings. b) Write a program to count the number of words, lines and characters in a text. [16marks] (April/May 2003-SET 3)18. a) Write a C program to find factorial of a given number using pointers. b) Write a C program to arrange the given names in alphabetical order using pointers.[16 marks] (April/May 2003-SET 3)19. a) In what way array is different from an ordinary variable? b) What conditions must be satisfied by the entire elements of any given array?c) What are subscripts? How are they written? What restrictions apply to the valuesthat can be assigned to subscripts?
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x