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

POP question Bank1

This document is a question bank for the Principles of Programming using C course at JSS Academy of Technical Education, Bengaluru. It includes questions divided into three modules covering topics such as introduction to C, operators and control statements, and functions and arrays. Each module contains various questions designed to assess understanding of programming concepts and C language syntax.

Uploaded by

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

POP question Bank1

This document is a question bank for the Principles of Programming using C course at JSS Academy of Technical Education, Bengaluru. It includes questions divided into three modules covering topics such as introduction to C, operators and control statements, and functions and arrays. Each module contains various questions designed to assess understanding of programming concepts and C language syntax.

Uploaded by

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

JSS ACADEMY OF TECHNICAL EDUCATION, BENGALURU

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


QUESTION BANK

SUBJECT/SUB CODE: PRINCIPLES OF PROGRAMMING USING C [BPOPS203]


SEMESTER: II
BRANCH: CSE
FACULTY: N. SNEHALATHA

MODULE-1: INTRODUCTION TO C
Sl No. Question Description
1 Define Algorithm and flowchart.
2 Explain the structure of C program in detail. Write a sample program to demonstrate the
components in the structure of C program
3 Explain the organization of computer model with a neat diagram.
4 Explain the generation of computers by highlighting the features.
5 Explain the various rules for forming identifiers names. Give examples for valid and invalid
identifiers for the same.
6 What is token? Explain the different types of tokens in C with examples for each
7 Define computer. Describe the various types of computers based on speed, memory and cost.
8 Develop an algorithm to find the area and perimeter of a circle. Also define an algorithm.
9 Define Computer. Explain the characteristics of a computer in detail.
10 What is variable? What are the rules to construct variable? Classify the following as
valid/invalid Identifiers. i) num2 ii) $num1 iii) +add iv) a_2 v) 199_space vi) _apple vii)#12
11 Draw a flowchart and C program which takes as input p,t,r. Compute the simple interest and
display the result.
12 Explain different input and output devices
13 Explain the following programming paradigms
a. Procedural programming
b. Structured programming
c. Object oriented programming
14 Explain printf() and scanf() functions with syntax and illustrate with examples.
MODULE-2: OPERATORS, DECISION CONTROL AND LOOPING STATEMENTS
Sl No. Question Description
1 What is an Operator and expression? Explain the following operators in C language with
illustrative examples.
a. Arithmetic
b. Logical
c. Relational
d. Bitwise
e. Conditional
f. Assignment
g. Unary
2 What is precedence and associativity. Explain with suitable example.
3 What is type conversion? Explain the different types with suitable examples
4 Develop a C program to read three coefficients (a, b, and c) of a quadratic equation ; (ax 2 + bx
+ c) and compute all possible roots and print them with appropriate messages.
5 Explain if ,if-else , else if ladder statements with syntax and examples
6 Explain switch statement with syntax . Develop a simple calculator program in C language to
do simple operations like addition, subtraction, multiplication and division using switch
statement.
7 What are unconditional branching statements? Explain the different types with syntax and
example.
8 What is iterative statements? Explain for, while and do-while statements with syntax ,
flowchart and example.
9 Give the difference between entry controlled and exit controlled loops.
10 Illustrate Nested loops in C with suitable example
11 Explain the working of goto statement in C with example. Distinguish between the break and
continue statement in C
12 Write a C program to print whether a given number is palindrome or not
13 An electricity board charges the following rates for the use of 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.
14 Write a C Program to display the following by reading the number of rows as input,
a. 1
123
1234
b. 1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1

c.
1
1 2
1 2 3
1 2 3 4

d.
1
1 2
1 2 3
1 2 3 4

MODULE-3: FUNCTIONS, ARRAYS


Sl. No. Question Description
1 Define Function. Explain the components of user defined functions with suitable example
2 Differentiate actual and formal parameters with suitable example
3 Explain the different categories of function based on arguments and return type with syntax
and examples for each.
4 Explain the Function Prototype, Function declaration and Function definition with syntax and
example.

You might also like