0% found this document useful (0 votes)
14 views6 pages

Question Bank: Unit Test-I

The document is a question bank for a Unit Test in Programming in C for Computer Engineering students. It covers various topics including basics of C programming, control structures, arrays and structures, functions, and pointers, with questions categorized by marks. Each chapter includes definitions, syntax, programming tasks, and conceptual questions to assess students' understanding of the course material.

Uploaded by

Samarth Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views6 pages

Question Bank: Unit Test-I

The document is a question bank for a Unit Test in Programming in C for Computer Engineering students. It covers various topics including basics of C programming, control structures, arrays and structures, functions, and pointers, with questions categorized by marks. Each chapter includes definitions, syntax, programming tasks, and conceptual questions to assess students' understanding of the course material.

Uploaded by

Samarth Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

BHARATI VIDYAPEETH INSTITUTE OF TECHNOLOGY

QUESTION BANK
Unit Test-I

Program: - Computer Engineering Group Program Code : CM/IF

Course Title: Programming in c (PIC Semester: - II

Course Abbr & Code:-PIC (312303) Scheme: K

===================================================================
CHAPTER-1 Basics of C Programming (48 Marks) (CO1)

2 Marks

1. Write advantages of algorithm.

PRACTICALKIDA.COM
2.
3.
4.
Explain the term alogorithm.
Explain the term flowchart.
What is keyword? List any four keywords of ‘c’ ?
5. Define variable and constant with syntax and example.
6. Define term:

-Token

-Operator

-Identifier

-Data type with storage size.

4 Marks

7. Explain all flow chart symbols.


8. Write algorithm and flow chart to find area of circle/rectangle.

9. Explain algorithm analysis.

10 .Explain arithmetic and logical operator.

11 .Explain increment/decrement operator with example.


12. Explain formatted i/o and o/p statement with example.

13. Explain conditional operator with example.

14.Explain declaration and initialization of variable with example.

15.Explain relational operators supported by ‘c’. Write c program illustrating its use.

CHAPTER-2 Control Structures(34 Marks) (CO2)

2 Marks

16.What is decision making and branching?

17.What is looping?

18.Write syntax of :

-while loop.

-do-while loop.

4 Marks

PRACTICALKIDA.COM
19.Write a program to add two integer numbers.

20.Write a program to find whether the number is even or odd.

21. Write a program to find whether the number is positive or negative.

22.Write the syntax for nested if-else statement.

23.Write the syntax for switch statement.

24. Write a program which will print largest of three numbers.

25.Differentiate between if and switch statement

CHAPTER-3 Array and Structure.(14 Marks)(CO3)

2 Marks

26.How to declare and initialize one dimensional array?

27.What is character array?

28.What is two dimensional array?How is it declared and initialized?

4 Marks
29.Write a program for addition of two 3x3 matrices.

30. Write a program to accept ten numbers in an array. Sort array elements and display it.

PRACTICALKIDA.COM
BHARATI VIDYAPEETH INSTITUTE OF TECHNOLOGY
QUESTION BANK
Unit Test-II

Program: - Computer Engineering Group Program Code : CM/IF


Course Title: Programming in c (PIC ) Semester: - II
Course Abbr & Code:-PIC (312303) Scheme: K
=====================================================

CHAPTER-3 Array and Structure.(CO3)


2 Marks

1 Define structure.Give syntax of declaring it.


2 .How to declare and initialize one dimensional array?
3 Define character array?
4 Define two dimensional array?How is it declared and initialized?
5. Declare and define a structure having member variables as emp_id,emp_name,salary.
6. Define typedef.

4 Marks

PRACTICALKIDA.COM
7. Declare structure ‘employee’ having data members as name,street and city.Accept this
data for three employees and display accepted data.
8 Implement a C program to accept ten numbers in an array. Sort array elements and display
it.
9. State difference between array and structure.
10 Define array of structure?Explain with example.
11.Explain enumerated data types with example ?

CHAPTER-4 Functions(CO4)
2 Marks

12 Define function and need of function?


13.Define recursion with example.
14.List different categories of function.
15.Enlist storage classes in ‘c’.
16.State difference between call by value and call by reference.
17. Define i) calloc() ii) malloc() iii)getchar iv)putchar

4 Marks

18. Implement a C program to find product of two numbers using function.


19. List string handling functions.Describe any two.
20. Implement a C to print Fibonacci series starting from 0, 1.
21. Implement a C program to read two strings and find whether they are equal or not.
22. Implement a C program to calculate factorial of a number using function.

CHAPTER-5 Pointer(CO5)

2 Marks
23.Explain int *ptr.
24.State the use of & and * operator with respect to pointer.
25.Define pointer with declaration and initialization.

4 Marks

26. Implement a program using pointer to swap two numbers.


27Defineare advantage of using pointer.
28.Implement a program which shows pointer arithmetic.
29.Explain array of pointer with example.
30.Explain structure using pointer with example
31. Implement a program to print value and address using pointer.
32. Write output for the following programming code:

#include<stdio.h>

#include<conio.h>

PRACTICALKIDA.COM
void main()

Int x ,y ,a, b,*P1, *P2;

x = 10;

y = 20;

P1 = &x;

P2 = &y;

a = *P1 * * P2 +20;

b = *P1 * *P2 – 20;

printf(“x=%d, y = %d”, x,y);

printf(“a=%d, b = %d”, a,b);

}
PRACTICALKIDA.COM

You might also like