Sie sind auf Seite 1von 3

Vrajesh Parikh (ITM Universe Vadodara). Question Bank.

(CIVIL A, CIVIL B, ELECT A,ELECT B, EC)


Question Bank
COMPUTER PROGRAMMING AND UTILIZATION
CIVIL A,B(Sem-II)
UNIT -1
1. Draw block diagram of computer system. Explain each part of it. 05
2. List and explain types of computer languages. 05
3. What is flow chart? Draw the flow chart to add first 20 odd numbers. 04
4. Define: Software, Hardware, Higher level Language, Operating System. 06
5. What is Algorithm? 02
6. Explain various symbols used in Flowchart and draw the flowchart for 07
finding Factorial of a number given by user.
UNIT -2
1. List and explain fundamental data types of C language. 05
2. Explain different types of operators used in C 05.
3. What is Type conversion and Type casting? State difference between them. 04
4. Data types in C. 05
5. Explain various operators used in C language. 07
6. Explain printf() and scanf() giving their syntax 04
UNIT -3
1. What is looping? Explain Entry control and Exit control loops with appropriate flow
chart and syntax. 07
2. Write a program to reverse the number. (e.g. 456 -> 654) 07
3. State the syntax of Switch-case statement. Explain it with appropriate example. 07
4. Write a C program to count ODD and EVEN numbers from given 10 numbers. 07
5. Write a C program to print following pattern. 07
54321
4321
321
21
1
6. Explain if-else-if ladder with appropriate flow chart and C syntax. 07
7. Write a program to display following pattern using nested for loops. 07
* * * * *
* * * *
* * *
* *
*
8. Write a program in C to generate Fibonacci series like following:
1, 1, 2, 3, 5, 8, 13 Generate 20 such numbers. 07
9. Explain various symbols used in Flowchart and draw the flowchart for finding
Vrajesh Parikh (ITM Universe Vadodara). Question Bank.
(CIVIL A, CIVIL B, ELECT A,ELECT B, EC)
Smallest number out of three given numbers. 07
10. Explain switchcase statement. 04
11. Write a program to find the sum of first N odd numbers. 07
12. List the various types of loop available in C and explain their syntax. 07
13. Write a program to print the following pattern 07
1
0 1
1 0 1
0 1 0 1
14. Explain the difference between while and do..while statement.
04
15. Write a program to display following pattern using nested for loops.
07
1
13
135
Write a C program to check whether the given number is Prime or not. 07
16. Write short notes on following:
(i) Nested if..else statement.
(ii) Use of break and continue statement.


UNIT -4
1. Explain various string functions. 07
2. Write a C program to count number of words in a given string. 07
3. Write a C program to read 10 numbers from user and find Sum, Maximum and
Average of them. 08
4. Write a C program to Add two 3 X 3 Matrix. 08
5. Explain how string is defined in C. Write user defined functions for the following: 07
(i) strlen() : to find length of string.
(ii) strcat() : to concate two strings.
6. What is string? Write a program to reverse the input string. 07
7. What is String? Explain any four string handling functions in C. 04
UNIT -5
1. Explain the difference between call by value and call by reference with suitable
examples. 07
2. What is recursive function? Explain with suitable example. 07
3. Scope and Lifetime of Variable. 05
4. What is used defined function? Explain types of functions with example. 06
5. What is recursion? Explain it with suitable example. 04
6. What is function? Explain the function definition, function prototype and function 07
call with example.

7. Write a function program to find whether the string is palindrome or not. 07
8. Write a short note on Categories of Functions. 04

Vrajesh Parikh (ITM Universe Vadodara). Question Bank.
(CIVIL A, CIVIL B, ELECT A,ELECT B, EC)

UNIT -6
1. What is pointer? Explain how pointers are declared and initialized. 04
2. Write short note on Pointer. 04
3. What is Pointer? How is Pointer initialized? How is it different from Array? 07
UNIT -7
1. Difference between Structure and Union. 04
2. What is structure? Explain with example how to declare a structure and how to
initialize it. 04
3. What is structure? How does a structure differ from an array? How is an array of 07
structure initialized?
UNIT -8
1. Explain dynamic memory allocation functions. 05
Malloc(), calloc(), realloc(), free().
UNIT -9
1. File Operations in C. 05
2. What is file management? List the different file management functions and explain
the various file modes.

Das könnte Ihnen auch gefallen