Question Bank
Question Bank
TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to V.T.U, Belagavi, Recognized by Govt. of. Karnataka)
Chandapura, Bengaluru-560099
Department of Computer Science & Engineering
Question Bank
SEMESTER I
FACULTY NAME
Module -1
Q.No Questions Bloom’s COs
LL
1. Define computer. Describe the various types of computers based L1 CO1
on speed, memory and cost.
2. Develop an algorithm to find the area and perimeter of a circle. L2 CO1
Also define an algorithm.
3. Write a short note on the characteristics of a computer. L1 CO1
4. What is variable? What are the rules to construct variable? L1 CO1
Classify the following as valid/invalid Identifiers. i) num2 ii)
$num1 iii) +add iv) a_2 v) 199_space vi) _apple vii)#12
5. Draw a flowchart and C program which takes as input p,t,r. L1 CO1
Compute the simple interest and display the result.
6. Explain the basic structure of C program with neat diagram. L2 CO1
7. With a neat diagram explain the steps in the execution of C L1 CO1
program.
8. Explain the input and output statements in C with example for L1 CO1
each.
9. Explain the organization of Basic computer model with neat L1 CO1
diagram.
10. List and explain any two input output devices. L1 CO1
11. What are the basic datatypes available in C? L2 CO1
12. Define variable. Explain the rules to declare variable with L2 CO1
example.
13. Explain different types of computers. L1 CO1
14. What is Software? Explain different types of software. L1 CO1
15. What is a token? What are different types of tokens available in C L1 CO1
language? Explain.
16. Evaluate the following expressions L2 CO1
i) 22 + 3 < 6 && !5 || 22 = =7 && 22 – 2 > +5
ii) a + 2 > b || !c && a = = d *a – 2 < = e Where a=11,
b=6, c=0, d = 7 and e=5.
17. Explain various input devices. L2 CO1
18. Explain the following programming paradigms. L2 CO1
i) Procedural Programming.
ii) Structured Programming.
iii) Object oriented Programming.
19. Explain the printf() and scanf() functions with their syntax. Give L2 CO1
the illustrative examples.
20. What is the purpose #include directive in c programming? L1 CO1
21. Write a C program to find the area of triangle when we know the L2 CO1
lengths of all three of its sides
22. Write a C program in C to find the area and perimeter of a circle L2 CO1
23. Write a C program to find wheter the given number is even or L2 CO1
odd.
24. Evaluate each of the following expression independent of each L2 CO1
other. The declaration & initialize statement is ......
int 1=3,j=4,k=2;
(a).i++-j—
(b).++k%--j
(c).j+1/i-1
(d).j++/i--
25. Differentiate between primary memory & secondary memory? L1 CO1
Module -2
Q.no Questions Bloom’s COs
LL
1. Write a note on the following operators. i) Relational ii) Logical L1 CO2
iii) Conditional
2. Develop a C program that takes three coefficients (a, b, and c) of L3 CO2
a quadratic equation; (ax2 + bx + c) as input and compute all
possible roots and print them with appropriate messages.
3. Explain the working of goto statement in C with example. L1 CO2
4. Explain switch statement with syntax and example L1 CO2
5. Develop a simple calculator program in C language to do simple L3 CO2
operations like addition, subtraction, multiplication and division.
Use switch statement in your program
6. Explain with syntax, if and if-else statements in C program. L2 CO2
7. Explain the various operators in C. L1 CO2
8. Explain the different form of If statement with flow charts. L1 CO2
9. Write a C program to find the largest of 3 numbers using nested if L1 CO2
statement.
10. What is type casting. Explain its types with suitable examples. L1 CO2
11. Explain different types of loops in C. Justify with its syntax and L2 CO2
examples.
12. An electricity board charges the following rates for the use of L2 CO2
electricity: for the first 200 units 80 paise per unit: for the next
100 units 90 paise per unit: beyond 300 units Rs 1 per unit. All
users are charged a minimum of Rs. 100 as meter charge. If the
total amount is more than Rs 400, then an additional surcharge of
15% of total amount is charged. Write a program to read the name
of the user, number of units consumed and print out the charges.
13. Show how break and continue statements are used in a C- L1 CO2
program, with example.
14. Develop a C program to generate and plot the Pascal triangle. L1 CO2
15. List and explain unconditional branching statements with L1 CO2
examples.
16. List the conditional branching statements. Explain any two with L2 CO2
example.
17. Explain any five types of operators in c with the illustrative L2 CO2
examples.
18. What are iterative statements. Explain the three types of iterative L2 CO2
statements with syntax and examples.
19. Write a C program to display the following patterns. L3 CO2
1
12
123
1234
20. Distinguish between break and continue statement. L4 CO2
21. Demonstrate the functioning of Bitwise operator in C L3 CO2
22. Difference between type conversion and type casting in C. L2 CO2
23. Define looping. Explain while and do-while looping with L2 CO2
examples.
24. Differentiate while and do while looping with examples. L2 CO2
25. Write a program to check whether a given integer is palindrome L3 CO2
or not?
Module -3
Q.No Questions Bloom’s COs
LL
26. Write a C program to swapping of 2 numbers using call by L3 CO3
reference and call by value.
27. Discuss the implementation of user defined function with suitable L2 CO3
example.
28. Write a C program to find the product of two given matrix. L3 CO3
29. Explain the declaration and initialization of one dimensional and L2 CO3
two-dimensional arrays with an example.
30. Explain the working of recursion with suitable example. L2 CO3
31. Discuss the storage classes in C. L2 CO3
32. What is an array? Explain the syntax and declaration of 1-D L1 CO3
array. L2
33. Write a program to perform Matrix Multiplication. L3 CO3
34. Define recursion. Write a C program to find factorial of n using L1 CO3
recursion. L3
35. Write a C program to search an element using binary search L3 CO3
techniques.
36. Write a c program to perform addition of two-dimensional matrix L3 CO3
(Consider 3*3 matrices A and B)
37. Define functions. Explain the types of functions based on L2 CO3
parameters.
38. Write a C program to sort the elements using bubble sort L3 CO3
techniques by passing functions as arguments.
39. Write an algorithm and develop a C program that reads N integer L2 CO3
numbers and arrange them in ascending order using selection
Sort.
40. Write a C-program using functions to generate the Fibonacci L3 CO3
series.
41. Write a C-program using function to check whether the given L3 CO3
number is prime or not.
42. Write a C program to transpose 3*3 matrix. L3 CO3
43. Differentiate between call by value and call by reference. Using L4 CO3
suitable example
44. Write a C program to find the largest element in an array L3 CO3
45. Write a C program to find the greatest number from two L3 CO3
dimensional array
46. Discuss various scope of variables L2 CO3
47. Illustrate the concept of recursive function with example L3 CO3
48. List the applications of arrays. L2 CO3
Module -4
Q.No Questions Bloom’s COs
LL
1. Mention various operations that can be performed on string using L2 CO4
built-in functions. Explain any two function
2. Develop a program using pointer to compute the sum, mean and L4 CO4
standard deviation of all element stored in array of N real number
3. Explain how strings are represented in main memory L4 CO4
4. Write a program to compare two strings without using built-in L3 CO4
function
5. What is pointer? Discuss pointer arithmetic with suitable C code L2 CO4
6. Explain gets()and puts() function with example L2 CO4
7. Define a string. Explain any 4 string library functions with syntax L1 CO4
and example L2
8. Write a C program to copy a string ( combination of digits and L3 CO4
alphabet ) to another string (only alphabets)
9. Explain the difference between a null pointer and a void pointer. L2 CO4
10. Define Pointer. Explain pointer variable declaration and L2 CO4
initialization with suitable example.
11. Develop a C program to find the largest of three numbers using L3 CO4
pointer.
12. Develop a C program to concatenate 2 strings without using built- L3 CO4
in function.
13. Discuss the various string handling functions in C. L2 CO4
14. Write a c program to swap two numbers using call by reference L2 CO4
techniques.
15. Write a C program to check the given string is palindrome or not. L3 CO4
16. Write a C program to replace each constant in a string with the L3 CO4
text one except letter ‘z’,’Z’ and ‘a’, ‘A’ for the string “Corona
Virus” should be modified as “Dpspoa Wjsvt”.
17. Write a C program to convert character of a string into upper case L3 CO4
string without using built-in function.
18. Discuss the working of the following string manipulation L2 CO4
functions with suitable examples.
a. strcmp
b. strlen
c. strcpy
d. strcat
19. Mention the applications of pointers. L2 CO4
20. List the advantages and disadvantages of pointers. L2 CO4
21. Explain in detail about string taxonomy. L2 CO4
22. List the miscellaneous string and character functions. L2 CO4
23. Write a C Program to implement string copy operation L3 CO4
STRCOPY(str1,str2) that copies string str1 to another string str2
without using library function.
Module -5
Q.No Questions Bloom’s COs
LL
1. Explain various modes in which file can be opened for L2 CO5
processing.
2. Implement structure to read, write and compute average marks of L3 CO5
the students. List the students scoring above and below the
average marks for a class of n students
3. What are enumeration variable? How are they declared L1 CO5
4. Write a short note on functions used to L2 CO5
Read data from a file
Write data to a file
5. Differentiate structures and unions with syntax and example L4 CO5
6. How to detect END-OF-FILE L2 CO5
7. What is structure? Explain the C syntax of structure declaration L1 CO5
with example L2
8. Explain array of structure and structure within a structure with an L2 CO5
example
9. Write a C program to maintain a record of „n‟ students details L3 CO5
using an array of structures with four fields(roll no,name,marks,
and grade).Assume appropriate data type for each field. Print the
marks of the student given the student name as input.
10. Write a C program to pass structure variable as function argument L3 CO5
11. Write a C program to store and print name, USN, subject and IA L3 CO5
marks of students using structure
12. Discuss the general syntax of structure variable declaration of L2 CO5
structure to store book information.
13. Write a program to write employees details in a file called L3 CO5
employee.txt. Then read the record of the nth employee and
calculate his salary.
14. Discuss the different modes of operation on files with suitable L3 CO5
example.
15. Differentiate between gets() and fgets(). L2 CO5
16. Define a structure by name DOB consisting of three members L3 CO5
dd,mm,yy. Develop a C program that would read values to the
individual member and display the date in the form dd/mm/yy.
17. Explain various file operation with syntax for each. L2 CO5
18. Write a C program to implement structure to read and write L3 CO5
Book-Title, Book-Author and Book-Id of n books.
19. Write notes on files. L2 CO5
20. Write a C program to print USN, Subject, and IA marks of L3 CO5
students using structures.
21. Write a note on enumerated data type. L2 CO5
22. Explain the process of opening a file in C. L2 CO5
23. Write a C program to demonstrate fwrite() function. L3 CO5
24. Explain with example how to create a structure using „typedef‟ L2 CO5