Pps QP
Pps QP
Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester:I/II
CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
2015-
Discuss the major components of a digital computer with
16,2016-
suitable block diagram. Also discuss the function of each
17,2017-
Block diagram of digital computer & its component.
1 1 1. 18,2018-
components, operating system and its type OR
19,2019-
What is digital computer? Draw a block diagram of it and
20,2020-
explain ALU and CU of it. What is the role of ALU?
21,2022-23
Block diagram of digital computer & its 2018-19,22-
1 1 2. Draw the memory hierarchical structure of computer system.
components, operating system and its type 23
1
2015-16,
Introduction to low level &high level Write the short notes on:-(i)Compiler (ii)Interpreter
2016-17,
1 2 languages, role of assembler, compiler, 7. OR
2017-18,
Interpreter Difference between- (i) Compiler – Interpreter
2018-19
3
Meerut Institute of Engineering & Technology, Meerut
Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: Ist
CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
List all the operators used in C. Give examples.
OR 2015-16,
Introduction of operators & its type based
What is an operator? Explain the arithmetic, relational, logical, 2017-18
on operand, type conversion, concept of
2 8 1. and assignment operators in C language. 2018-19
arithmetic& relational operator
OR 2019-20,
What are the different types of relation operator? Discuss each 2020-21,
with example.
Introduction of operators & its type based
2 8 on operand, type conversion, concept of 2 Differentiate post increment and pre increment with example. 2016-17
arithmetic& relational operator
What are bitwise operators? How they are different from logical
Concept of logical, bitwise etc operator, operators. find the value of following Expression using Bitwise 2017-
2 9 3.
Operator precedence and associativity operator- 18,2022-23
(i)10>>2 (ii) 20<<2 (iii) 25& 30 (iv)25|30
Concept of logical, bitwise etc operator,
2 9 4. What is conditional operator? Explain with suitable example. 2018-19
Operator precedence and associativity
Define The term-
Concept of logical, bitwise etc operator, (I)Associativity (II)Precedence 2016-
2 9 5.
Operator precedence and associativity Or 17,2022-23
Differentiate between precedence and associativity.
What is type conversion? Explain with example. 2016-17
Concept of logical, bitwise etc operator,
2 9 6. OR 2017-
Operator precedence and associativity
Differentiate implicit and explicit conversion with example 18,2022-23
Concept of logical, bitwise etc operator,
2 9 7. What is difference between type casting and type conversion? 2019-20
Operator precedence and associativity
Concept of logical, bitwise etc operator, Write a C program to find the largest of three numbers using
2 9 8. 2016-17
Operator precedence and associativity ternary operator
1
Write short note on various decision/selection control
instruction used in c.
Concept of simple if & if else & related 2020-
2 10 9. OR
programs 21,2015-16
Explain the two way selection (if, if-else, nested if-else, cascaded
if else in C language with syntax.
Concept of simple if & if else & related What is the difference between else if ladder&switch
2 10 10. 2017-18
programs statement.
Concept of simple if & if else & related Write a C program to find the largest of three numbers using
2 10 14. 2015-16
programs Nested if-else statement.
2016-17,
Concept of simple if & if else & related Write the program to print the division or grade of student for
2 10 15. 2015-
programs given percentage.
16,2022-23
Concept of simple if & if else & related Write a program print the roots of quadratic equation for real
2 10 16. 2019-20
programs roots & otherwise print imaginary roots.
Concept of simple if & if else & related WAP to check whether the given character is upper case, lower 2014-15,
2 10 17.
programs case, numeric or symbol. 2017-18
2
Meerut Institute of Engineering & Technology, Meerut
Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: I/II
CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
Describes about the types of looping statements in ‘C’ with
necessary syntax. 2014-15
3 15 Use of for statement & related programs 1.
OR 2018-19
Write the syntax format for while, do while and for loops.
3 15 Use of for statement & related programs 2. Write a program to check a number is prime number or not. 2017-18
3 15 Use of for statement & related programs 4. Write a program to print all prime numbers from 1 to 300. 2015-16
1
Write a program that calculate sum of the digits of an integer.
For example, the sum of the digit of the number 2155 is
3 16. Use of while statement & related programs 8. 2016-17
2+1+5+5 or 13. The program should accept any arbitrary
number typed by user.
2
What is array? In which situation array is advantageous over
Array notation and representation, one linked list? 2018-19,
3 19. 16
dimensional arrays & related programs or 2016-17
What is an array? Give an example.
Array notation and representation, one
3 19. 17 What are subscripts? How they are specified? 2017-18
dimensional arrays & related programs
Array notation and representation, one Write a program to find odd and even number from the array
3 19. 18. 2020-21
dimensional arrays & related programs elements and its count.
Array notation and representation, one Write a C program to check whether given square matrix is
3 19. 19. 2015-16
dimensional arrays & related programs symmetric or not.
Write a C program to multiply two matrices. Take the size of
elements of matrices from the keyboard.
Or
Write a program to multiply the 2 matrices of size M*N.
2015-16,
Or
2016-17,
Write a program to multiply two matrices of dimension 3*3 and
Using multi dimensional arrays & related 2017-18,
3 20 20 store the result in another matrix.
programs 2018-19,
Or
2020-21,
Write a C program to multiply two matrices and display the
2022-23
resultant matrix
Or
Write a program to multiply two matrices (read size and
number of elements of matrices from the keyboard..
Write a program in C for matrix addition.
Using multi dimensional arrays & related Or 2016-17,
3 20 21.
programs Write a program to add two matrices of dimension 3*3 and 2017-18
store the result in another matrix.
Using multi dimensional arrays & related
3 20 22. Write a program in C to find the largest number of a 4*4 matrix. 2017-18
programs
3
Character arrays and strings, string
3 21. 24. Explain the significance of null character in string. 2018-19
handling library functions
Explain all string handling library functions.
Or
Character arrays and strings, string
3 21. 25. Explain predefined string functions. 2015-16
handling library functions
Or
Explain in brief the purpose of 'strcmp' function.
3 22 Programs related to string for practice 26. Write a program in C to reverse a string by using pointer. 2017-18
4
Or
Write a 'C' program to store the employee details using
structure.
Write a program that compares two given dates. To store data
Concept of structure, array of structure & use structure say date that contains three members namely
3 23 31. 2017-18
related programs date, month and year. If the dates are equal then display
message as “Equal” otherwise “Unequal”
Create a suitable structure in C language for keeping the records
of the employees of an organization about their code , Name ,
Concept of structure, array of structure &
3 23 32. Designation , salary , Department , City of posting. Also Write a 2019-20
related programs
program in C to enter the records of 100 employees and
displays the name of those who earn more than 20,000
Explain the importance of structure in C programming. Write a
Concept of structure, array of structure & program in C using Structure to enter and print the record of 10
3 23 33 2018-19
related programs books available in your library. Following fields may be included
in the record: book_title ,book_price and number_of _pages.
Concept of structure, array of structure &
3 23 34 Explain array of structures. 2016-17
related programs
2015-16
Difference between structure & union,
3 24. 35 Differentiate between structure and union in 'C'. 2018-
enumerated data types
19,2022-23
Write short notes on Union and Enumerated data type.
Or
Difference between structure & union, 2016-17,
3 24. 36. Explain the following:
enumerated data types 2018-19
i)Enumerated Data Type
ii)Union
5
Meerut Institute of Engineering & Technology, Meerut
Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: I/II
CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
What are functions? What is the advantage of using multiple
Introduction to function and types of functions in a program?
4 25 1. 2016-17
functions Or
What is function? Why programmer use functions in code?
Introduction to function and types of
4 25 2. What are the types of function? 2014-15
functions
Introduction to function and types of Write a function in C language to find the reverse of a given
4 25 8. 2015-16
functions integer number.
What do you mean by parameter passing? Discuss various types 2016-17,
Difference between call by value and call of parameter passing mechanism in C with example? 2015-
4 26 9.
by reference Or 16,2017-
Explain the difference between parameter passing mechanism 18,2022-23
1
call by value and call by reference. Which is more efficient and
why?
Or
Write a function to interchange the two values of two variables
without using third variable.
2014-15,
What is storage class? Describe automatic, register, static and
4 27 Concept of storage class 10. 2017-18,
external with neat syntax.
2015-16
Discuss the following:
2015-16
4 27 Concept of storage class 11. (i) Scope of variable
2018-19
(ii)Lifetime of a variable
Role of recursive functions & related Differentiate between static and register storage class in C
4 28 12. 2016-17
programs language.
2016-17,
Role of recursive functions & related What is recursion? Write a C program to generate the Fibonacci 2017-18,
4 28 13.
programs Series. 2016-17,
2017-18
2014-
Role of recursive functions & related
4 28 14. What are the main principles of recursion? Explain in detail. 15(Even),
programs
2015-16
Role of recursive functions & related
4 28 15. Differentiate between recursion and iteration. 2018-19
programs
2014-15,
2018-19,
Role of recursive functions & related Write a C program to find the factorial of a given number using
4 28 16. 2020-
programs recursion.
2021,2022-
23
Write a C program to search a number in given 10 numbers
4 29 Searching : linear search & binary search 18. 2016-17
using linear search technique?
2
Explain linear search and binary search technique for searching
4 29 Searching : linear search & binary search 20. and item in a given array .Also write the complexity for each 2018-19
sorting algorithm.
2018-
4 29 Searching : linear search & binary search 21. Differentiate between linear search and binary search.
19,2022-23
What do you mean by sorting? Write program to sort the given
n positive integers. Also give the flowchart for the same.
Or
2016-
4 30 Basic sorting algorithms : bubble Sort 22. Write a program in C for sorting N positive integers in
17,2017-18
Ascending order.
Or
Define sorting algorithm with example.
What do you mean by sorting? Write a program in C to sort 'n'
positive integers using bubble sort. Also draw the flow chart for
the same.
Or
2017-
Write the importance of sorting in problem solving .Write a
18,2018-
4 30 Basic sorting algorithms : bubble Sort 23. program in C using bubble sort technique to sort 10 numbers
19,2019-
entered by the user.
20,2022-23
Or
Write a C program to sort set of integers in ascending order by
using bubble sort technique.
3
Meerut Institute of Engineering & Technology, Meerut
Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester:1st
CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
2015-16
Introduction, declaration, applications of
5 33 1. What is pointer and how is it initialized? 2016-17,
pointer
2017-18
What is void pointer? How is it different from other pointers?
Introduction, declaration, applications of
5 33 2. Or 2015-16
pointer
What is special about void pointer?
Introduction, declaration, applications of 2019-
5 33 3. What do you mean by pointer arithmetic?
pointer 20,2022-23
2015-16,
Introduction, declaration, applications of
5 33 4. State the features of pointers. 2016-
pointer
17,2019-20
What is dynamic memory allocation? How does it help in building
complex programs? What is the task of following memory allocation 2015-
function? 16,2016-
a. malloc 17,2017-
Introduction to dynamic memory allocation:-
5 34 5. b. calloc 18,2018-
malloc, calloc, realloc and free
c. free 19,2019-
d. realloc 20,2020-
or 21,2022-23
What is the role of dynamic memory allocation?
Introduction to dynamic memory allocation:-
5 34 6. What is life time of variable which is created dynamically? 2018-19
malloc, calloc, realloc and free
Difference between compile time and run time memory allocation.
Introduction to dynamic memory allocation:- Or 2018-
5 34 7.
malloc, calloc, realloc and free Explain static memory allocation and dynamic memory allocation 19,2022-23
with suitable example.
1
Program related to pointers & dynamic
5 35 8. Write a program in c to sort the numbers using pointers. 2019-20
memory allocation
Linked List: Use of pointers in self-referential
What is linked list? Write the self reference structure of a node in 2018-
5 36 structures. notion of linked list (no 9.
linked list? 19,2022-23
implementation)
Linked List: Use of pointers in self-referential
5 36 structures. notion of linked list (no 10. Write the advantage of use of linked list. 2020-21
implementation)
Introduction to file, file handling library
5 37 11. Explain file handling. 2020-21
functions
Introduction to file, file handling library Write the following function in file operations: 2017-
5 37 12.
functions getw() putw() fscanf() fprintf() 18,2020-21
2015-
What are the various types of files that can be created in C
16,2017-
language? Also give different modes in which these files can be used
5 38 Practice of file related programs 13. 18,2019-
with proper syntax. WAP in c to append some text at the end of an
20,2021-
existed text file.
22,2022-23
2015-
List various file operation in C .WAP in c to count the number of 16,2017-
5 38 Practice of file related programs 14.
characters in a file. 18,2018-
19,2022-23
Write the various input functions used in file handling in c. A file
named data contains a series of integer numbers WAP to read 2015-
5 38 Practice of file related programs 15.
number from file and then write all ‘odd’ number to file ODD.txt & 16,2019-20
all even to file EVEN.txt.
Suppose a file contains student’s records with each record
5 38 Practice of file related programs 16 containing name and age of a student. WAP in C to read these 2015-16
records and display them in sorted order by name.
2015-
16,2016-
5 38 Practice of file related programs 17 Write a c program to copy the text of one file to another.
172017-
18,2020-21
2
Write a program in c to write some text matter into a file
5 38 Practice of file related programs 18. ‘example.txt” and then read this text matter and display on console 2022-23
using file handling method.
2015-
What is preprocessor directive? Explain any three of them.
Standard C preprocessors, types of 16,2019-
5 39 19. Or
preprocessor directives 20,2020-
What is the role of C preprocessor?
21,2022-23
What do you mean by macro? Explain types of macros with
examples. 2016-
Standard C preprocessors, types of
5 39 20 Or 17,2017-
preprocessor directives
How the macros are defined and called in c. explain with suitable 18,2018-19
example.
Standard C preprocessors, types of Write the difference between #includes<stdio.h>&
5 39 21 2015-16
preprocessor directives #include”stdio.h” file inclusion method.
#define PRODUCT(n) n*n
void main( )
{
Standard C preprocessors, types of int j;
5 39 22. 2017-18
preprocessor directives j=64/PRODUCT(4);
printf(“%d”,j);
}
What will be the output of the above program?
Standard C preprocessors, types of Explain the syntax and use of the following directive with example: 2017-
5 39 23.
preprocessor directives #ifdef #undef #pragma #include 18,2018-19
Write macro definition with arguments for calculation of simple
Standard C preprocessors, types of interest and amount. Store these macro definitions in a file called
5 39 24. 2019-20
preprocessor directives ‘interest.h’. Include this file in your program and use macro
definitions for calculation simple interest and amount.
5 40 Command-line arguments & related programs 25. Explain command line argument in c with example. 2018-19