0% found this document useful (0 votes)
68 views2 pages

Answer All Questions. Each Question Carries Marks of 1: Part A

This document contains questions to test knowledge of C programming concepts. It is divided into multiple parts with questions of varying point values. Part A contains 12 one-point multiple choice questions testing basics of C like where it was developed, data types, operators, and input/output. Part B has 4 two-point questions about preprocessor directives and C program structure. Part C gives 4 five-point questions about conditional expressions, formatting output, problem-solving techniques, and standard input/output functions. Part D is a single 10-point question that can involve explaining control flow or C tokens.

Uploaded by

Roopesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views2 pages

Answer All Questions. Each Question Carries Marks of 1: Part A

This document contains questions to test knowledge of C programming concepts. It is divided into multiple parts with questions of varying point values. Part A contains 12 one-point multiple choice questions testing basics of C like where it was developed, data types, operators, and input/output. Part B has 4 two-point questions about preprocessor directives and C program structure. Part C gives 4 five-point questions about conditional expressions, formatting output, problem-solving techniques, and standard input/output functions. Part D is a single 10-point question that can involve explaining control flow or C tokens.

Uploaded by

Roopesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PART A

Answer all questions. Each question carries marks of 1


1.C language has been developed at______________
2.A character variable can at a time store___________
3.The maximum value that can integer constant can have is____________
4.A C variable cannot start with_____________
5.In x=6.6/a+((2*a+(3*c)/(a*d))/(2/n); which operation will be performed first
6.If a is an integer variable ,a=5/2; will return a value
7.The expression , a=7/22*(3.14+2)*3/5; evaluates to _____
8. Output of the following program fragment is
X=5;
Y=x++;
Printf(%d %,x,y);
9.Avariable which is visible only in the function in which it is define is called______ variable.
10.For reading a double type value , we must use the specification _________________.
11.The _________operator is a technique to forcefully convert one data type to other.
12.By default ,the real numbers are printed with a precision of _________ decimal places.
(12x1=12)
PART B
Answer all questions. Each question carries marks of 2.
13.Why and when we do use # define directive?
14.What are trigraph characters? How are they useful?
15.Explain basic structure of C programs
16.Explain the structure of C programs.
(4x2=8)

PART C
Answer any four questions .Each question carries marks of 5.
17.Write conditional operater to evaluate following
Y=2.4x+3 for x<=2
Y=3x-5 for x>2
18.Output the number x=56.1624 under the following format specification
Printf(%7.2f,x)
Printf(%f,x)
Printf(%8.2e,x)
Printf(%e,x)
19. What is top down design write down the steps to break down a problem into sub problems.
20. Write a program to test if a character from keyboard is lower case letter.
21. Explain the following statements
i.getchar()
ii.putchar()
22. Defie the following

i.auto variable
ii.static variable
iii.External variable iv. Register variable
(4x5=20)
PART D
Answer any one question. Each question carries marks of 10.
23. Describe simple if statement, if.else statement with flow chart
Write a C program to check whether an integer entered by the user is odd or even.
Program to display if enter a negative number.
24. What are C tokens? Explain each with examples.

(1x10=10)

You might also like