0% found this document useful (0 votes)
29 views8 pages

ITP-quesion Bank Set-I

This document is a question bank for the subject 'Introduction to Programming' for the academic year 2024-25. It covers various units including programming concepts, control structures, arrays, pointers, user-defined data types, functions, and file handling, with questions categorized by Bloom's taxonomy levels. Each unit contains questions for remembering, understanding, and applying knowledge, along with practical programming tasks.

Uploaded by

studyharshini
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)
29 views8 pages

ITP-quesion Bank Set-I

This document is a question bank for the subject 'Introduction to Programming' for the academic year 2024-25. It covers various units including programming concepts, control structures, arrays, pointers, user-defined data types, functions, and file handling, with questions categorized by Bloom's taxonomy levels. Each unit contains questions for remembering, understanding, and applying knowledge, along with practical programming tasks.

Uploaded by

studyharshini
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/ 8

Subject Code : A40501 Subject Name : Introduction to Programming

Class/Section : I Year : 2024-25 Semester : I

QUESTIONBANK

Name of Faculty: Mr S.Hupesh Naga Ketan

BLOOMSLEVEL
Remember L1 Understand L2 Apply L3
Analyze L4 Evaluate L5 Create L6

UNIT I: Introduction to Programming and Problem Solving


Remembering

1. What are the essential building blocks of a computer system?(2 marks)


2. What is an algorithm?(2 marks)
3. How would you differentiate a flowchart from pseudo-code?(2 marks)
4. Name two fundamental data types in the C programming language.(2 marks)
5. Define variables and constants in C programming?(2 marks)

Understanding

1. What role does the Arithmetic Logic Unit (ALU) play in the functioning of a
computer?(2 marks)
2. What are the main differences between primary memory types like RAM and ROM?
(2 marks)
3. List and explain the different arithmetic operators available in C language.(2 marks)
4. What is an identifier? What are the rules that should be followed for defining the
identifiers?(2 marks)
5. Give brief description about the general problem solving strategies.(2 marks)

Applying

1. What is an output device? Provide an example and its application in real life.
(2 marks)
2. State the differences between compiler and interpreter.(2 marks)
3. What is top – down design? Illustrate it with the help of a diagram.(2 marks)
4. Define flowchart. Describe the symbols used for representing reading and
decision making statements.(2 marks)
5. What is the use of sizeof() operator in C.(2 marks)
UNIT II: Control Structures

Remembering
1. What is the purpose of the case keyword in a switch statement?(2 marks)
2. Write the syntax of a do-while loop.(2 marks)
3. Mention the various types of looping statements.(2 marks)
4. Mention the various Decision making statements available in C.(2 marks)
5. Draw the flow chart for switch statement. (2 marks)

Understanding
1. How does a switch statement terminate?(2 marks)
2. What happens when the break statement is used inside a loop?(2 marks)
3. Define initialization in a loop and explain its significance with an example.(2 marks)
4. Write a simple example of an if-else statement and explain how it works.(2 marks)
5. Distinguish between while and do-while statement in C.(2 marks)

Applying
1. Write a program that uses a loop to calculate the sum of the first 10 natural numbers.
(2 marks)
2. With an example, distinguish between break and continue statements.(2 marks)
3. Write the program to check number is even or odd.(2 marks)
4. Write the program to check year is leap year or not.(2 marks)
5. Write the program to find a person is eligible for voting or not.(2 marks)

UNIT III: Arrays and Strings

Remembering
1. Define a multidimensional array.(2 marks)
2. Write the syntax for declaring and initializing a string in C.(2 marks)
3. List out the built in functions in string.(2 marks)
4. What is meant by String?(2 marks)
5. List out the types of arrays?(2 marks)

Understanding
1. Explain array initialization with an example.(2 marks)
2. Define the concept of array traversal.(2 marks)
3. What do you mean by gets() and puts() functions in string?(2 marks)
4. Write syntax of an 1-D array?(2 marks)
5. In how many ways, an array can be initialized? Give example for each.(2 marks)

Applying
1. How do you find the length of a string in C? Write a program to demonstrate.(2
marks)
2. Write a program in C to find the sum of numbers present in an array.(2 marks)
3. Write a program to input and display a string using gets() and puts().(2 marks)
4. Write a C function to read two strings, compare them and print the result.(2 marks)
5. Write a program in C to concatenate two strings using sting in-built functions.
(2 marks)
UNIT IV: Pointers & User Defined Data Types

Remembering
1. Define Pointer with an example.(2 marks)
2. List out dynamic memory allocation functions.(2 marks)
3. Define pointer to pointer.(2 marks)
4. Define union.(2 marks)
5. Write the syntax of union declaration.(2 marks)

Understanding
1. Write the syntax of pointer declaration.(2 marks)
2. What is address and de-reference operator.(2 marks)
3. Differentiate between structure and union.(2 marks)
4. Explain the differences between structures and arrays.(2 marks)
5. How is a pointer used to access array elements?(2 marks)

Applying
1. How to declare arrays of structures.(2 marks)
2. What is the operator used for accessing structure member, explain it by considering
one simple example.(2 marks)
3. Write a program that adds two numbers by using pointers.(2 marks)
4. Write a C function to interchange two values using pointers.(2 marks)
5. What is Nested structure? Give an example.(2 marks)

UNIT V: Functions & File Handling


Remembering
1. What is the purpose of the main() function in C?(2 marks)
2. Define function with an example.(2 marks)
3. Mention two advantages of using functions in programming(2 marks)
4. What is the significance of the return statement?(2 marks)
5. What is a file? What is the use of ‘r’ and ‘w’ in file-type specification?(2 marks)

Understanding
1. State the difference between global and local variables.(2 marks)
2. Explain the concept of argument passing in functions and its significance.(2 marks)
3. Explain how recursion works in functions.(2 marks)
4. What is function prototype and give its syntax?(2 marks)
5. What are actual and formal parameters?(2 marks)

Applying
1. Write a C program to copy the contents of one file to another.(2 marks)
2. What are the built-in functions used to create and close a File?(2 marks)
3. What is return statement and its functionality? (2 marks)
4. What are the built-in functions used to create and close a File?(2 marks)
5. What are the functions used to write and read the content from binary Files?(2 marks)

UNIT I: Introduction to Programming and Problem Solving

Remembering

1. What are primitive data types in C? List some examples (10 marks).
2. Define the concepts of time complexity and space complexity in algorithms (5
marks).
3. What are input and output units in a computer system, and why are they essential (5
marks)?
4. Define flowchart and explain about the various symbols used in construction of
flowchart with an example (5 marks).
5. Explain about history of computers (10 marks).

Understanding

1. Why is the top-down approach significant in solving problems (5 marks)?


2. Discuss about the type conversion and typecasting with example (5 marks).
3. Explain various operators in C with suitable examples (5 marks).
4. Illustrate with examples how different problem-solving techniques can be applied to
algorithm design (5 marks).
5. Explain the structure of C program with an example (5 marks).

Applying

1. Write an algorithm and draw a flowchart to check if a given number is even or odd
(5 marks).
2. Describe the different bitwise, increment/decrement and assignment operators with
suitable examples (5 marks).
3. Draw a flow chart to find the roots of a quadratic equation (5 marks).
4. What is conditional operator? Write a program to find the smaller of two numbers by
using conditional operator (5 marks).
5. Write a program that reads user input, performs basic arithmetic operations, and
displays the results. Include the algorithm, flowchart, and pseudo code (10 marks).

UNIT II: Control Structures

Remembering
1. Define entry-controlled and exit-controlled loops with examples(5 marks).
2. Explain the difference between while and do-while loops (5 marks).
3. With the help of syntax and flowchart, explain any two iterative statements (5 marks).
4. Differentiate between break and continue statements (5 marks) .

Understanding
1. Describe how control structures improve the flow of a program. Provide examples.
(5 marks).
2. How entry controlled loop is different from exit controlled loop? Explain.(5 marks).
3. Explain in detail about conditional statements in C with example program for each.
(10 marks).
4. Explain in detail about iterative or looping statements with example program for each.
(10 marks).
5. Explain about if, if-else, switch statements with an example.(5 marks).

Applying
1. Write a program to calculate the sum of digits of a given number using loops.
(5 marks).
2. Write a program to calculate the sum of even numbers from 1 to 100 using a loop.
(5 marks).
3. Write a program to check if a number is a palindrome using conditional statements
and loops.(5 marks).
4. Write a program to print the multiplication table of a number using nested loops.
(5 marks).
5. Write a program to generate Fibonacci series(5 marks).
6. Write a program to find GCD of two Numbers(5 marks).
7. Implement a program that allows the user to perform various operations such as
addition, subtraction, multiplication, and division. Use switch statements to handle
menu choices.(5 marks).
8. Write a C program to find factorial of a given number.(5 marks).
9. Write a C program to find whether a given number is Arm Strong number or not.
(5 marks).
10. Write a C program to find roots of quadratic equation.(5 marks)

UNIT III: Arrays and Strings

Remembering
1. Define an array. What are the different types of arrays? (5 marks)
2. How is a one dimensional array declared and initialized? (5 marks)
3. Brief about the 2D array and its representation in memory. (5 marks).

Understanding
1. Discuss the applications of arrays in solving real-world problems (5 marks).
2. How arrays differ from normal variables? Write a C program to find the largest
number present in an array (5 marks).
3. Explain how strings are represented in C with an example program (5 marks).
4. Explain in detail about string declaration and initialization. (5 marks).

Applying
1. Write a program to find the sum and average of elements in an array.(5 marks).
2. Write a program to find the maximum and minimum elements in an array.(5 marks).
3. Write a program to count the number of vowels in a string.(5 marks).
4. Write a C program to print the elements of an array in reverse order.(5 marks).
5. Write a C program to sort the elements of an array.(5 marks).
6. Write a C program to perform matrix addition. (10 marks).
7. Write a “C” program to find length of a string and concatenation of two strings
without using string handling functions (10 marks).
8. Write a C program to perform linear search on an array(10 marks).
9. Write a C program to perform transpose of matrix (10 marks).

UNIT IV: Pointers & User Defined Data Types


Remembering

1. What is a pointer? Write a C program to print address of a variable. (5 marks)


2. Write about Pointer Arithmetic Operations .(10 marks)
3. Give brief description about the different functions that supports the dynamic memory
allocation for variables. (5 marks)
4. Explain about array manipulation using pointers.(5 marks)
5. Write short notes on dereferencing and address operators. (5 marks)

Understanding
1. Write a program in C to demonstrate pointer to a pointer with brief explanation.
(5 marks)
2. Explain the difference between structure and union in c with an example. (5 marks)
3. Explain in detail about malloc() and calloc() functions for dynamic memory allocation
. (5 marks)
4. Define structure. Why we need structures? Explain the nested structure and array of
structures. (10 marks)
5. Explain how an array can be manipulated using Pointers. (5 marks)

Applying
1. Differentiate between structures and unions in C.(5 marks)
2. Write a C program to find the total, average of n students using structures. (10 marks)
3. Write a program to swap two numbers using pointers. (5 marks)
4. Write a C program to read student name, ID and marks in 3 subjects for a class of 25
students. Display the student name, ID and total marks for each student. (10 marks)

UNIT V: Functions & File Handling

Remembering
1. What is a function? What are the types of functions? What is the advantage of using
functions? (5 marks)
2. Explain any two built-in functions with an example. (5 marks)
3. Write about various operations that can be performed on files. Write various modes of
file operations. (5 marks)
4. Explain various input and output functions of File. (5 marks)
5. Based on return type and arguments, how many types of functions are there? Explain
them with an example program. (5 marks)
Understanding
1. Describe the scope and lifetime of variables with examples. (5 marks)
2. What do you mean by functions? Give the structure of the functions and explain about
the arguments and their return values. (5 marks)
3. Illustrate the concept of passing arrays to functions with relevant example program.
(5 marks)
4. Differentiate call by value and call by reference.(5 marks)
5. Explain the following library functions with suitable examples:
(i) fopen. (ii) fread. (iii) fseek. (iv) fscanf. (v) fprintf(10 marks)

Applying

1. Discuss recursion in detail with a program to calculate the factorial of a number. (10
marks)

2. Write a C program and explain how an array can be passed through a function. (10
marks)

3. Write a program to calculate the sum of an array using a function. (10 marks)
4. Write a program to implement a recursive function for generating Fibonacci numbers.
(10 marks)
5. Write a C program to read data from the keyboard. Write in a file called input.txt,
then read same data from the input.txt file, and display it on the screen. (10 marks)
6. Write a program to append data to an existing file using file handling functions. (10
marks)

You might also like