Do as Directed. 1. What is the output: 01 int main ( ) { printf ( “ %d ”, ‘A’); return 0; } 2. What is the output: int main ( ) { int no = 5; printf ( “ %d %d %d”, no++, no, ++no); return 0; } 3. What is the output: int main ( ) { float no = 10.25; float rem; rem = no % 2; printf ( “ %f ”, rem); return 0; }
[2 marks]Do as Directed. 1. Define: Tokens. 2. State the use of “sizeof()” Operator used in C Language. 3. What do you mean by declaring a variable and defining a variable? 4. What is the use of Linker? 5. Differentiate between “=” and “==”. 6. “\n” is used for ______ and “\0” is used for ________. 7. Array index starts with 1 in C Language. (True/False with proper reason).
[7 marks]What are data types? Explain basic data types in detail.
[7 marks]Explain different format specifier in printf( ), along with few examples.
[7 marks]What are operators? State different types of operators and explain prefix, postfix operator and relational operator.1
[7 marks]What is an algorithm? Write an algorithm to take 3 sides of a triangle as an input and check whether triangle can be drawn or not.
[7 marks]What do you mean by nested loop? Explain this concept using for loop with proper example.
[7 marks]Explain conditional branching statement with the help of C Program.
[7 marks]What is a typecasting? Write its significance and purpose with suitable example(s).
[7 marks]What is a function? How it is used? What are its advantages? Write a program to find maximum for 3 numbers using function.
[7 marks]Write a program to display the following output using C Language. A B C D E F G H I J
[7 marks]What is the use of switch case, explain with proper example. Also explain the use of default.
[7 marks]Write a program in C Language to accept 10 numbers from the user in an array and display their average.
[7 marks]What do you mean by scope and lifetime of a variable? Explain the types of scope.
[7 marks]Difference between: 1. Entry control and exit control 2. Break and continue.
[7 marks]What is character array? How can we use it to handle string type data in C? Explain any four inbuilt string functions in brief.
[7 marks]1. Differentiate between function prototype and function definition. 2. State the rules of identifiers.
[7 marks]