Sunday, April 17, 2016

QB-Unit 2

2 MARKS

1.      What do curly braces denote in C? Why does it make sense to use curly braces to surround the body of a function?
2.      State the difference between
#include<filename>  and  #include”filename”

3.      What is a keyword? How is it different from an identifier?
4.      What are the various rules for naming identifiers?
5.      What do you understand by modifiers?
6.      What is an escape sequence? Explain taking an example.
7.      What is a variable? How is it declared?
8.      What is the difference between declaration and initialization of a variable?
9.      Differentiate between local and global variable.
10.  How do you define constants? Explain by taking an example.
11.  What is an expression? Explain arithmetic expression.
12.  Why we use relational operators? Explain various relational operators.
13.  What is the difference between unary operator and binary operator?
14.  What is the difference between logical operator and bitwise operator?
15.  What is importance of increment operator? Differentiate between pre increment and post increment.
16.  What are the various shorthand assignment operators?
17.  Explain associativity and precedence property of an operator.
18.  What is the difference between implicit and explicit type casting?
19.  Find the value of Y (assume Y is integer data type)

Y= 4 * 2 / 4 – 6 / 2 + 3 % 2 * 6 / 2 + 2 > 2 && 4 !=2

20.  Differentiate between getchar and scanf functions. In response to the input statement

         scanf(“%4d%*%d”,&year,&code,&count);
The following data is keyed in 19883745, what values does the computer assign to the variables year, code, count?

5 MARKS

1.      Discuss the fundamental data types available in ‘C’ language, along with its memory utilization, range, format specifier, etc.
2.      What is a storage class? Describe automatic, register, static and external with neat syntax.
3.      Briefly discuss the operators available in the ‘C’ language.
4.      Discuss about the formatted and unformatted input/output functions of ‘C’.
5.      Write a program to find the largest of three numbers using conditional operator.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.