0% found this document useful (0 votes)
5 views

QUESTION BANK_Introduction to C programming

The document is a question bank for the Introduction to C Programming course at SJCIT for the academic year 2023-24. It includes a total of 50 questions divided into five modules, covering various topics such as computer basics, operators, functions, arrays, and pointers. Each question is categorized by Bloom's learning levels and course outcomes.

Uploaded by

Deepak B L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

QUESTION BANK_Introduction to C programming

The document is a question bank for the Introduction to C Programming course at SJCIT for the academic year 2023-24. It includes a total of 50 questions divided into five modules, covering various topics such as computer basics, operators, functions, arrays, and pointers. Each question is categorized by Bloom's learning levels and course outcomes.

Uploaded by

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

SJCIT Question Bank

Estd: 1986

Department of Artificial Intelligence and Machine


Learning

SUBJECT TITLE Introduction to C programming

SUBJECT TYPE Engineering Science Courses - 1

SUBJECT CODE BESCK104E

ACADEMIC YEAR 2023-24(odd semester) BATCH 2023-2026

SCHEME 2022 scheme

SEMESTER 1st sem, Mech section


FACULTY NAME and
Darshan A, Assistant Professor, Dept of AI & DS ,SJCIT
DESIGNATION
QUESTION BANK

Module -1
Q. Bloom’s
Questions COs
No. LL
Define computer. Describe the various types of computers based on speed,
1 memory and cost. L1,L2 CO1

2 List out the characteristics of a computer L1 CO1


Develop an algorithm to find the area and perimeter of a circle. Also define an
3 algorithm. L3 CO2

4 Explain the difference between declaring a constant using #define and using L3 CO2
const in C. Provide an example of each.
Write a C program that takes input as p, t, r and compute the simple interest and
5 display the result. L3 CO2

6 Describe any three input devices. L2 CO1


Define Identifiers and explain its rules. State whether the following identifiers
7 are valid or invalid with justification. i. $roll no ii. _name123 iii. If iv. L1,L2 CO2
Name_ _123

Explain the formatted input and output statements with suitable syntax and
8 example L2 CO2

Explain the structure of C program in detail. Write a sample program to


9 demonstrate the components in the structure of C program. L2 CO2

Page | 1
SJCIT Question Bank

Compare and contrast the features and capabilities of a desktop computer versus
10 a laptop for different types of users. L6 CO1

11 Explain Generations of computer. L2 CO1


Explain Stored program concept with neat diagram and also list out the key
12 features of the same concept. L2, L1 CO2

Analyze the role of RAM versus ROM in storing and accessing data in a
13 computer. L4 CO1

14 Explain Basic Organization of a computer with neat diagram. L2 CO1

15 Explain different types of pointing devices L2 CO1

Module -2
Q. Bloom’s
Questions COs
No. LL
1 Define an operator? Explain the categories of Operators. L1,L2 CO2
2 Explain arithmetic and relational operators with an example programs. L2 CO2
3 Explain Equality and unary operators with an example programs. L2 CO2
4 Compare and contrast the 'for' loop and 'while' loop in C. When would you L3 CO2
choose one over the other for a specific programming task?
5 Write a C program that uses a 'do-while' loop to calculate the factorial of a given L3 CO2
integer input. Ensure the program handles negative numbers gracefully.
6 Explain the concept of nested loops in C with syntax and an example for each. L2 CO2
7 Explain go-to and break statement with an example program for each. L2 CO2
8 Explain continue and return statement with an example program for each. L2 CO2
9 Investigate a scenario where improper use of control structures (if statements, L4 CO2
loops) could lead to unintended consequences in a C program. Discuss potential
solutions.
10 Explain bitwise operators with an example program L2 CO2
11 Explain Assignment, comma and sizeof operator with an example programs. L2 CO2
12 Write a C program that uses a switch statement to calculate the total cost based L5 CO2
on user input for items in a shopping cart.
13 Explain while loop with syntax, flow chart and an example program. L2 CO2
14 Explain do-while loop with syntax, flow chart and an example program. L2 CO2
15 Write a C program to find the sum of N natural numbers using loops. L3 CO2

Page | 2
SJCIT Question Bank

Module -3
Q. Bloom’s
Questions COs
No. LL
1 Define function. List out the advantages of using functions in C program. Write L1,L2 CO3
a syntax for declaring a function, defining a function and calling a function with
an example program illustrating the same
2 Write a C program to perform sum of two numbers using functions L3 CO3
3 Explain auto and register storage class with an example program for each. L2 CO3
4 Explain extern and static storage class with an example program for each. L2 CO3
5 Write a C program to find GCD of two numbers using recursive functions. L3 CO3
6 Define recursion. Explain the concept of recursive functions with an example L1,L2 CO3
program.
7 Write a C program to print Fibonacci series using recursion. L2 CO3
8 Define Array. Explain declaration and initialization of one and two dimensional L1,L2 CO3
arrays with an example.
9 Explain various ways of initializing 1D array with an example program for each. L2 CO3
10 Write a C program illustrating reading and writing of 1D array L3 CO3
11 Write a C program to print square of a given array elements. L3 CO3
12 Evaluate the advantages and disadvantages of passing arrays to functions by L4 CO3
reference versus by value in C. Provide examples to illustrate your points.
13 Design a program that uses functions to find the maximum and minimum values L5 CO3
in an array of integers.
14 Write a C program to implement addition of two matrices. L3 CO3
15 Write a C program to implement multiplication of two matrices. L3 CO3

Module -4
Q. Bloom’s
Questions COs
No. LL
1 Design a C program that uses a 2D array to store and manipulate a matrix of L5 CO3
integers.
2 Explain Reading of strings with an example program for each method. L2 CO4
3 Explain how to use scanf() function to read a string with an example program. L2 CO4
4 Explain gets() function with an example program L2 CO4
5 Compare and contrast the memory allocation for a 2D array versus a 1D array in L4 CO3
C. How does the arrangement of elements affect memory usage?
6 Explain getch() and getche() with an example program for each. L2 CO4
7 Explain writing strings with an example program for each method. L2 CO4
8 Explain printf() function with an example program. L2 CO4
9 Explain puts() function with an example program. L2 CO4
10 What is the syntax for declaring a 2-dimensional array in C? L1 CO3

Page | 3
SJCIT Question Bank

How do you access an element in a 2D array with indexes [i][j]?


11 Write C function to implement string operations such as compare, concatenate L3 CO4
and find string length. Use the parameter passing technique.
12 write a C program to compute taylor series approximation. Compare your result L3 CO3
with the built-in library function. Print both the results with appropriate
inferences
13 Explain the following in-built functions with an example program for each: L2 CO4
a) strcat()
b) strncat()
c) strchr()
d) strrchr()
e) strcmp()
f) strncmp()
g) strcpy()
h) strncpy()
i) strstr()
14 Write a C program to implement string reversing without using strrev() function. L3 CO4
15 Explain toupper() and tolower() with an example program. L2 CO4

Module -5
Q. Bloom’s
Questions COs
No. LL
1 Define a pointer. Explain how to declare and initialize pointer variable with an L1, L2 CO5
example program.
2 Explain the concept of pointer assignment with an example program. L2 CO5
3 Explain the concept of pointer to pointer with an example program. L2 CO5
4 Explain the concept of Null Pointer with an example program. L2 CO5
5 Compare and contrast the use of structures and arrays in C programming. When L5 CO5
would you choose to use one over the other in a given scenario?
6 Explain pointer arithmetic with an example program. L2 CO5
7 Explain how comparison operation can be performed with the help of pointer L2 CO5
variable.
8 Explain how increment and decrement happens with the help of pointers. L2 CO5
9 Develop a program that implements a binary search tree using pointers to L6 CO5
structures. Include functions for insertion, deletion, and searching for elements
in the tree.
10 Develop a C program using pointers to compute the sum, mean and standard L3 CO5
deviation of all elements stored in an array of n real numbers.
11 Develop a C program to find the largest of three numbers using pointer L3 CO5
12 Explain the difference between a null pointer and a void pointer. L4 CO5
13 Discuss the general syntax of structure variable declaration of structure to store L2 CO5
book information.
14 Explain structure within a structure with an example. L2 CO5
15 Implement structures to read, write and compute average-marks of the students, L3 CO5
list the students scoring above and below the average marks for a class of N
students.

Page | 4
SJCIT Question Bank

Note:
1. Questions shall be framed by consolidating comprehensively from the
following sources
 Exercise problems of text books/ references
 Previous year question VTU exam Question paper. (Mark the year/exam
beside the question)
 Questions by Experts during Interview/Academic Audit
 Internet sources/ other Universities examination question papers.
 Own / experience.
 Gate questions mentioning the year.
2. Questions shall follow all the Bloom’s learning levels with appropriate
action verbs
3. There shall be a total of 50 questions considering10 questions from each
module, of which, 3 questions each at L1 and L2, 2 questions at L3, 1
question each at L4 and L5/L6.
4. Ensure the coverage of all Cos.

Page | 5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy