C-FIT Assignment
C-FIT Assignment
ASSIGNMENT QUESTIONS
Note:
• Answer to all the questions
• Write questions and answers clearly and completely.
• Write assignments in Rs. 10 ruled Rough Guide
• Assignments must be self-written in hand.
• To receive CIE marks, turn in assignments before October 28.
marks questions
1) List any two important features of C
2) What are tokens? Give any two examples.
3) Give the structure of C program.
4) List steps involved in executing a C program
5) What are keywords? List any four keywords.
6) What are identifiers? Give example for a valid and invalid identifier name.
7) Differentiate keywords and identifiers.
8) List the rules to be followed for naming an identifier/variable.
9) What are constants? Give examples for integer constants.
10) Differentiate constants and variables.
11) Differentiate integer and real constants. Give example
12) Differentiate character and string constants.
13) List and specify the meaning of any four backslash character constants.
14) Provide the syntax for declaring a variable. Give an example.
15) What is initialization? Give an example.
16) What do you mean by symbolic constants? How to define them?
17) Provide the syntax of printf(). Give an example.
18) Provide the syntax of scanf(). Give an example.
19) List any four unformatted I/O functions available in C
20) List with use any four format codes used with scanf()/printf()
21) What are operators? Specify their use.
22) List different categories of operators available in C
23) What is integer arithmetic? Give an example.
24) What is real arithmetic? Give an example
25) What is relational expression? Give an example
26) What is logical expression? Give an example
27) Differentiate pre/post increment and decrement operators
28) List short-hand assignment operators available in C
29) What is the difference between = and == operators?
30) Give the syntax of conditional operator. Give an example.
31) List special operators available in C along with their meaning
32) Define arithmetic expression. Give an example.
33) Specify the precedence of arithmetic operators in C
34) What do you mean by type conversion? Mention its types.
35) List any four built-in Mathematical functions available in C
36) Write the syntax of simple if statement. Give an example.
37) Give the syntax of goto statement. Give an example
38) Define the term looping. What are the different looping statements available in C?
39) Differentiate entry-controlled and exit-controlled loops
40) Differentiate break and continue statements
6 marks questions
1) List and explain features of C [6].
2) Give Structure of C program and Explain each section. [6].
3) Explain structure of C program with programming example [6]
4) Write a note on Tokens in ‘C’ [6].
5) Write a note on Constants in ‘C’ [6].
6) Explain in brief classification of of a) integer types and b) floating point types
7) List and explain primary data types available in ‘C’ [6].
8) Explain with examples declaring, initializing and assigning value to variable [6].
9) Explain with example #define statement in ‘C. List rules apply to it. [6].
10) Explain with example reading ,writing a character and strings in C [6]
11) Explain with example formatted Input in C [6].
12) Explain with example formatted Output in C [6]
13) Explain printf() function with its syntax and example [6]
14) Explain scanf() function with its syntax and example [6]
15) Write a program to read two real values and perform addition, subtraction,
multiplication and division operation on them [6].
16) List and explain arithmetic, logical and relational operators available in C (6)
17) List and explain a) conditional operator, b) short-hand assignment and c) increment &
decrement operators available in C (6)
18) Write a note on bitwise operators available in C (6)
19) Explain with example evaluation of arithmetic expression in C (6)
20) Explain precedence of arithmetic operators with the help of an example expression (6)
21) Explain the concept of type conversion in C, Give examples (6)
22) Explain in brief implicit and explicit type conversion with example (6).
23) Explain different forms of if statement (6)
24) Explain nested if statement with the help of a program example (6)
25) Explain else..if ladder with the help of a program example (6)
26) Explain switch statement with syntax and a program example [6]
27) Explain while statement with syntax and example (6)
28) Explain do..while statement with syntax and example (6)
29) Explain for statement with syntax and example (6)
30) Explain the following: (6)
i. Nested loops
ii. Infinite loops