Programming & Problem Solving (BT-103)
Time:3 Hours | Max Marks:70 | ||
Sno. | Questions | Marks | |
---|---|---|---|
Q 1. Short Answer Type Question (Attempt Any Five) | |||
a | What do you understand by typedef ? | 6 | |
b | What does a storage class mean? Mention different storage classes available in C. | 6 | |
c | Explain all loop structures in C with the help of syntax and flow charts. | 6 | |
d | What is function ? Write down their type. | 6 | |
e | Define formal and actual argument of function with the help of example. | 6 | |
f | What is the use of break, continue, goto and exit in c program. | 6 | |
g | Explain file handling in C. | 6 | |
Q 2. Long Answer Type Question (Attempt Any Four) | |||
a | Write a to multiply by 2 with input values by using command line arguments. | 10 | |
OR |
|||
What is pointer in C ? Write a program to add and subtract any integer value with pointer and display value of pointer. |
|||
b | Write a program to print details of student(name, course, branch) and address(state, city, pin) using nesting of structure. |
10 | |
OR |
|||
Write a program to print ASCII value of any character using function. |
|||
c | Write a program to find the diagonal elements of matrix. |
10 | |
OR |
|||
What is switch case in C program. Implement a simple calculator by using switch case. |
|||
d | What is bitwise operators.Explain any two bitwise operator using proper example. |
10 | |
OR |
|||
Write a program to convert upper character to lower and lower to upper without using predefined functions. |
|||
e | Write a program to print reverse of any number. |
10 | |
f | What is File handling? Explain and Implement following function such as fgetc(), fputc(), fputs(), fgets(), fopen(), fclose(). |
10 |
No comments:
Post a Comment