C Lang Paper
C Lang Paper
C Lang Paper
A) Determine which of the following are valid character constants. a) 'a' b) '$' c) '\n' d) '/n' e) '\\' B) Write a Single Inheritance program. C) Determine which of the following are valid string constants. 1) '8.15 P.M.' 2) ''Red, White and Blue'' 3) ''Name: 4) ''Chapter 3 (Cont\'d)'' 5) ''1.3e-12'' D) Explain the purpose of the following expressions 1) a b 2) d = a * (b + c) 3) (a % 5) == 0
(10) (5)
Q.2:-
A) What is Constructors? Write a program using constructors. B) What is Object-Oriented Languages? C) Describe Inline function with example.
Q.3:-
A) Draw Basic Data types tree diagram? B) Write basic concepts of Object-Oriented Programming. C) Write class syntax and write any program using class.
Q.4:-
What is operator overloading and write a program for overloading unary minus operator.
A) Determine which of the following are valid character constants. a) 'a' b) '$' c) '\n' d) '/n' e) '\\' B) Draw basic Structure of 'C' programming & Give its a details. C) Write features of C language. D) Explain shortly. 1) Variable 2) Constants 3) Keywords 4) Expressions
Q.2:-
A) What is Array? Write a program for find out greater value using array. B) Write a program for using while loop for sum of digits. (ex. 123 sum = 6)
C) WAP for to find out no. of +ve, -ve and 0 number from given 10 numbers. (For Loop) (5) D) Write a program for calculates area of circle using function. E) Write a program for find factorial of any number. Q.3:A) Explain Operators and Write a various types of Operator. B) What is Structure? Write a definition with syntax. C) Write a loop program to generate the following pyramid. 1 12 123 1234 12345 Q.4:A) WAP for to reverse a three digit integer. (Ex. 123 = 321) B) WAP for to find out the largest number between three numbers. C) WAP for to create menu drawn program using switch statement 1. Addition. 3. Multiplication 5. Exit 2. Subtraction 4. Division (5) (5) (5) (10) (10) (5)
D) Write a loop program to generate the following pyramid. A AB ABC ABCD ABCDE
Best of Luck