Programming & Problem Solving (BT-103)
Time:3 Hours | Max Marks:70 | ||
Sno. | Questions | Marks | |
---|---|---|---|
Q 1. Short Answer Type Question (Attempt Any Five) | |||
a | Draw the flowchart and write a C program to compute simple interest. | 6 | |
b | What is operator precedence? Write precedence of arithmetic operators | 6 | |
c | Explain the organization of Computer. | 6 | |
d | What do you understand by algorithms ? Explain different ways of stating algorithms. | 6 | |
e | What are C character sets ? What are tokens ? | 6 | |
f | What do you understand by type casting ? | 6 | |
g | What is python? Write their scope ? | 6 | |
Q 2. Long Answer Type Question (Attempt Any Four) | |||
a | Explain switch case statement and write a calculator program in C language to do simple operations like addition, subtraction, multiplication and division using switch case. |
10 | |
OR |
|||
Write a C program to read N integers into an array A and to find the (i)sum of odd numbers,(ii) sum of even numbers,(iii) average of all numbers. Output the results computed with appropriate headings. |
|||
b | Write a program that reads two matrices A and B of size 3X3 and prints the result of A+B. |
10 | |
OR |
|||
Define a function? Explain two categories/types of argument passing techniques, with proper programs in C. |
|||
c | What are Recursive functions? Demonstrate factorial program using recursion. |
10 | |
OR |
|||
Explain the array of pointes with example? or Explain how pointers and arrays are related with example. |
|||
d | Explain (if, if-else, nested if-else, cascaded if else) in C language with syntax and example. |
10 | |
OR |
|||
What is function parameter? Explain different types of parameters in C functions. |
|||
e | What is function? Explain different classification of user defined functions based on parameter passing and return type with examples. |
10 | |
f | What are the common built-in data types in python? Write a program to print sum of 10 numbers using python. |
10 |
No comments:
Post a Comment