0% found this document useful (0 votes)
66 views4 pages

R23-I Sem - IP Question Bank(2024-25)

The document outlines the course structure for 'Introduction to Programming' at P.B.R. Visvodaya Institute of Technology & Science for the academic year 2024-25. It includes course outcomes, a question bank with essay and short answer questions across various units covering topics like algorithms, control structures, arrays, pointers, and file handling. The course aims to develop foundational programming skills in C language and problem-solving abilities.

Uploaded by

naniandela0212
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)
66 views4 pages

R23-I Sem - IP Question Bank(2024-25)

The document outlines the course structure for 'Introduction to Programming' at P.B.R. Visvodaya Institute of Technology & Science for the academic year 2024-25. It includes course outcomes, a question bank with essay and short answer questions across various units covering topics like algorithms, control structures, arrays, pointers, and file handling. The course aims to develop foundational programming skills in C language and problem-solving abilities.

Uploaded by

naniandela0212
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/ 4

P.B.R.

VISVODAYA INSTITUTE OF TECHNOLOGY & SCIENCE


(AUTONOMOUS)

(Affiliated to J.N.T.U.A, Approved by AICTE and Accredited by NAAC)


KAVALI – 524201, S.P.S.R Nellore Dist., A.P. India. Ph: 08626-243930

***************************************************************************
Academic Year: 2024 – 25, I B. Tech., I Semester
Class & Branch: Common to All Branches of Engineering
Subject Name: INTRODUCTION TO PROGRAMMING (23A05301A)
***************************************************************************
CO COURSE OUTCOMES
CO1 Understand basics of computers, the concept of algorithm and algorithmic
thinking. (K2)
CO2 Analyze a problem and develop an algorithm to solve it. (K4)
CO3 Implement various algorithms using the C programming language. (K3)
CO4 Understand more advanced features of C language. (K2)
CO5 Develop problem-solving skills and the ability to debug and optimize the
code. (K3)

QUESTION BANK

Essay Type Questions

Unit – I: Introduction to Programming and Problem Solving

QNO QUESTION CO K Level


1 With a neat diagram explain the functional block diagram of a 1 K2
computer
2 a) Define Algorithm. Write an algorithm to find the area and 1 K2
perimeter of a circle
b) Define flowchart. Draw the flowchart to compute simple 1 K2
interest.
3 a) Explain the basic structure of a C program with an example. K2
b) Write a program to find the sum and average of given three K3
numbers.
4 a) Explain the process of declaration and initialization of a 1 K2
variable with a suitable program.
b) Write a C program that computes the size of int, float, double 1 K2
and char data types.
5 a) Explain the working principle of conditional operator with a 1 K2
suitable program.
b) What is type conversion? Explain explicit type conversion 1 K2
with a suitable example.
6 a) List the basic steps for problem solving strategy. 1 K2
b) Distinguish between Top-down and Bottom-up approaches. 1 K4

1
Unit – II: Control Structures

QNO QUESTION CO K Level


1 a) With suitable C programs, demonstrate simple If and If-else 2 K2
statements.
b) Write a C program to find maximum of given three numbers. 2 K3
2 a) Explain switch-case statement with an example program. 2 K2
b) Write a C program to check whether a given character is 2 K4
Vowel or Consonant using switch-case.
3 Explain in detail about while and do-while loops with suitable 2 K2
examples.
4 a) With the help of flowchart and syntax explain the “for” loop. 2 K2
b) Design a C program to find factorial of a given value using for 2 K3
loop.
5 a) Differentiate break and continue statements with suitable 2 K4
example programs.
b) Design a C program to check whether a given number is prime 2 K3
number or not.
6 a) Explain the working principle of “goto” statement with suitable 2 K3
programs.
b) Write a C program to generate n Fibonacci numbers. 2 K3

Unit – III: Arrays and Strings

QNO QUESTION CO K Level


1 Explain the process of declaration and initialization of a single 3 K2
dimensional array.
2 a) Explain the process of defining a double dimensional array. 3 K2
b) Write a C program to perform multiplication of given two 3 K3
matrices.
3 Explain in detail any five string handling functions with 3 K3
examples.
4 Write a C program to read a set of strings and sort them in 3 K2
alphabetical order.

Unit – IV: Pointers & User Defined Data types

QNO QUESTION CO K Level


1 Define pointer. Explain in detail the process of declaration and 4 K2
initialization of a pointer variable with an example.
2 a) Explain in detail pointer-to-pointer with an example? 4 K2
b) Write a C program to find sum of all the elements in given
array elements using pointers.
3 a) Explain in detail valid arithmetic operations on pointers. 4 K2
b) Write a C program to exchange the value of two integers using 4 K3
call by address.
4 What is a structure? Explain how to declare and access structure 4 K2
elements with an example.

2
Unit – V: Functions & File Handling

QNO QUESTION CO K Level


1 Explain the process of creating an user-defined function with a 5 K2
suitable example?
2 a) What is Recursion? Write a C program that uses recursive 5 K4
function to find the factorial of a given number.
b) Describe Automatic and External storage classes in detail. 5 K2
3 Explain in detail basic operations performed on a file with a 5 K2
suitable program.
4 a) List and explain the file error handling functions. 5 K4
b) Write about different file modes? 5 K2

Short Answer Questions

Unit – I:
1. Define an algorithm and give an example.
2. Write short notes on comments in C?
3. What are the bitwise operators in C?
4. Explain the purpose of logical operators.
5. Define operator precedence and associativity ?
Unit – II:
1. Write syntax of nested if-else statement?
2. Briefly describe the iterative statements.
3. Distinguish pre-test and post-test loops.
4. Write a C program to find reverse of a given value.
5. Illustrate the use of break in loop statements with an example.

Unit – III:
1. Define array. Give an example for declaring and initializing a one dimensional array
of size 5.
2. What are string I/O functions? Mention it syntax.
3. Write a program to print length of a given string without using library functions.
4. Illustrate initialization of a string with an example.
5. Explain the purpose of atoi() function?

Unit – IV:
1. What is pointer? Give its general form.
2. Write a program to show the difference between malloc() and calloc() functions.
3. Explain the purpose of free() function?
4. Differentiate array and structure.
5. Define union? Write the general template for a union?

3
Unit – V:
1. List the advantages that are associated with the use of functions in C language.
2. Explain any two library functions that supports by math.h header file?
3. Define function prototype. Give the general syntax of function prototype.
4. Define scope and life time of a variable? Mention four types of storage classes.
5. What is the importance of ftell( ) library function?

You might also like