Bapuji Educational Association (Regd.
)
Bapuji Institute of Engineering and Technology
Department of Computer Science and Engineering
First/Second Semester B.E. Degree Examination
PRINCIPLES OF PROGRAMMING USING C
Subject code: BCSESC103
Autonomous - Question Bank of Module 1
Sl. Question Marks RBT Level COs
No.
1 Explain the structure of C program in detail. Write a sample program to 8 L2 CO1
demonstrate the components in the structure of C program
2 Demonstrate formatted output of integer in C with suitable example 6 L2 CO1
3 Discuss different types of error occur in program 6 L2 CO1
4 Explain the various rules for forming identifiers names. Give examples for 8 L2 CO1
valid and invalid identifiers for the same.
5 Discuss the variants of microcomputer that are widely used today 6 L2 CO1
6 Develop an algorithm to find the area and perimeter of a circle. Also 6 L2 CO1
define an algorithm.
7 Define Computer. Write a short note on the characteristics of a computer 6 L1 CO1
8 What is variable? What are the rules to construct variable? Classify the 8 L2 CO1
following as valid/invalid Identifiers. i) num2 ii) $num1 iii) +add iv)
a_2 v) 199_space vi) _apple vii) #12
9 Explain the organization of a basic computer model with a neat 8 L2 CO1
diagram.
10 Explain input and output statements in C 8 L2 CO1
11 List and explain any three input and output devices. 6 L2 CO1
12 What are the basic datatypes available in C? Also mention their size 6 L2 CO1
in bytes.
13 Explain the basic structure of a C program with suitable example. 8 L2 CO1
14 Explain the following programming paradigms: 10 L2 CO1
a) Procedural programming
b) Structured programming
c) Object oriented programming
15 Explain the difference between a compiler and an interpreter. 4 L2 CO1
16 Explain the significance of speed in computing. How does it impact 6 L2 CO1
computer performance?
17 Explain the evolution of computers. Further, state how computers in 5 L2 CO1
one generation are better than their predecessors.
18 Differentiate between primary and secondary storage in a computer. 4 L2 CO1
19 Write short notes on application of computers. 6 L2 CO1
20 Broadly classify computers based on their speed, the amount of data 6 L2 CO1
that they can hold, and price.
21 Explain different hardware components used in computer. 6 L2 CO1
22 Elaborate on the functions and types of handheld input devices. 6 L2 CO1
23 List and describe different types of hard copy output devices and 6 L2 CO1
their operational principles.
24 Provide a concise overview of different programming paradigms 8 L2 CO1
and highlight the distinctions between Procedural and
Object-oriented programming.
25 Explain different phases of software development life cycle. 8 L2 CO1
26 What is an algorithm, and why is it important in programming? 4 L2 CO1
27 Describe the key characteristics of a good algorithm. 4 L2 CO1
28 Explain the difference between an algorithm and a program. 4 L2 CO1
29 Write an algorithm to find the largest of three numbers. 6 L3 CO1
30 What is a flowchart, and how does it help in visualizing an 6 L2 CO1
algorithm?
31 Describe the commonly used symbols in flowcharts. 6 L2 CO1
32 Create a flowchart for a program to compute salary of an employee. 6 CO1
33 Explain the purpose of the #include directive in a C program. 6 L2 CO1
34 Why do you use the return statement in the main () function? 6 L2 CO1
35 What is a token? What are different types of tokens available in C 8 L2 CO1
language? Explain
36 What is a variable in C, Provide an example of variable declaration 6 L2 CO1
and initialization.
37 List and briefly explain the four fundamental data types in C. 6 L2 CO1
38 What is the difference between a local variable and a global variable 4 L2 CO1
in C?
39 How can you take input from the user in C? Provide an example 8 L3 CO1
using scanf().
40 Explain how to display output to the screen using printf(). Give an 8 L2 CO1
example.
41 What is the purpose of the '\n' character in printf statements? 4 L2 CO1
42 What is the format specifier, and how is it used in ‘scanf’? 6 L2 CO1
43 Why is it important to use the ampersand (&) operator in ‘scanf’ 5 L2 CO1
when reading variables?
44 Write a ‘printf’ statement to display a message containing both text 8 L2 CO1
and variable values.
45 Explain how to print a floating-point number with a specified 6 L3 CO1
number of decimal places using printf.
46 Write a C program to add, subtract, multiply and divide two 8 L3 CO1
numbers. Also, display the results.
47 Write a C program that calculates the area of a rectangle, circle, 8 L3 CO1
triangle and square and display the results.
48 Write a C program to compute simple interest. Draw flowchart for 8 L3 CO1
the same.
49 Write a C program to swap two numbers using (i) temporary 10 L3 CO1
variable (ii) without using temporary variable.
50 Write a program to find greatest/biggest of three numbers. 6 L3 CO1
51 Describe the importance of comments in a C program. Provide 6 L2 CO1
examples of single-line and multi-line comments.
52 How can you use comments for documentation within your C code? 6 L2 CO1
53 Explain the role of preprocessor directives in a C program. Provide 6 L2 CO1
examples of common preprocessor directives.
54 Why is the #define directive used, and how does it work? 6 L2 CO1
55 Write a C program to demonstrate the use of scanf and printf 8 L3 CO1
statements to read and print values of variables of different data
types.
56 Write a program to calculate the area of a triangle using Hero’s 8 L3 CO1
formula.
57 Write a C program to calculate the distance between two points. 6 L3 CO1