Cse+It 2nd Sem Pyq'24 (Mini+Mid)
Cse+It 2nd Sem Pyq'24 (Mini+Mid)
NOTE: There are four questions and the credit for each question is mentioned at the
end. All the questions are compulsory.
1. Give the statement of Rank-nullity theorem. (4 Marks)
Does there exist a linear transformation T: R²’ R such that
Im(T) = {(,y, z, w) | z+y tz+w=0}?
Justify your answer.
2. (a) Explain why the following statement is false. (3 Marks)
The solution z, of the system Az =b, with all free variables zero is the
shortest solution (minimum length |z|). Find a 2 x 2 counter example.
(b) Write the solution set of the system Ar =b, where. (3 Marks)
-1 2
-2 2
or more of |3
1. A |Students in the school of mathematics at a university major in onemathematics
the following four areas: applied mathematics (AM), pure How many
(PM), operations research (OR), and computer science (CS).
students are in this school if (including joint majors) there are 23 students
majoring in AM; 17 in PM; 44 in OR; 63 in CS; 5 in AMOR; and PM; 8 in AM
14 in OR and
and CS; 4 in AM and OR; 6 in PM and CS; 5 in PM and
CS; 2 in PM, OR, and CS; 2 in AM, OR, and CS; 1 in PM, AM, and OR;1in
and 1 in all four fields.
PM, AM, and CS;
2
What is the Cartesian productA x B x C, where A ={0, 1}, B= {1, 2}, and
B.C={0, 1, 2}
for all
2. A Use mathematical induction to prove the inequality n'<2
positive integers n>4
2
Let À, B, and C be sets. Show that
B.
(AU(BNC))=(C'UB') NA'.
congruent modulo 4"3
3. A Let R1 and R2 be the "congruent modulo 3" and the =b
on the set of integers. That is, R1 = (a, b) | a
relations, respectively,
(mod 3)} and R2 ={(a, b) | a =b(mod 4)}.
Find a) RI U R2. b) R1 NR2. c) R1 R2
equivalence relations and contain 2
Find the relation on the set {a, b, c, d} are
B. (a, b) and (b, d)?
A. Show that the premises "It is not sunny this afternoon and it is colder than 3
4. If we do not go
yesterday," We will go swimming only if it is sunny," canoe trip, then
Swimming, then we will take a canoe trip," and "If we takea will be home by
conclusion We
we will be home by sunset" lead to the
sunset."
2
Test the Validity of Arguments:
grade."
B.
If you have access to the network, then you can change your
You have access to the network."
:"You can change your grade.
Name of Student:
·Mxitunjay landey Scholar No.:9302078
INDIAN INSTITUTE OF INFORMATION TECHNOLOGY BHOPAL
Department of CSE (Computer Science Engineering)
Mid-Ternm Examination September - 2024
Subject Name/ Code: Digital Logic Design /CSE-213 MM:20
Time Allotted: 90 min
B.Perform the addition of the numbers (2.4)s and (1.3)5. Write your answer in 2
the same radix.
A. Abinary number X= XAX3X1X1 0s given and its 2's
as Y= Y4YY2Y1. Find the conversion codes from Xcomplement is defined
to Y and draw the 2
2, circuit using OR and Exclusive-OR gates.
B. Prove the Consensus/Redundancy Theorem using Boolean laws
considering three variables. 2
The values of two variables X, and y are given as:
0 0
3. A.
4
1 Draw the waveform and write truth table for function: x but not y
ii. Draw the waveform and write truth table for function: not x or y
4 A.
What is duality?
2
Comments on dual of expression F = AB + BC + AC
B. Write the minimal form of expression for the following in both standard
forms (SOP &POS): 2
F (A,B, C, D)=) (1,4,5, 6,7)
Assume that digital information is transmitting from source to receiver in the
A form of 4-bit Gray code. Design a required circuit to convert the Gary
code
at source and binary code at receiver point. (Tabulate all possible 4-bit 4
combinations)
Indian Institute of Information Technology, Bhopal
Department Of Computer Science & Engineering
MID- Term Exam. (Nov.-2024)
Subject: Principles of Programming Languages Sub.Code: CSE 214
Time: 1.5 Hours. Max Marks: 30
Q4. What is the need for activation records? Show all entries of stack during the execution of the
program given below: (take some value of variables al and a2 and show the result). (5)
Q5. Explain the step by step exxecution of program mentioned below. (5)
Q6. Write a program which takes two strings as input and stores these strings in two different
linked lists. Every node of the linked list will store one character of string. Pass these linked lists
to afunction, which will compare the characters of both strings one by one. Display thè character
and its position, if it is at the same position in both strings. (Display the result for strings
"conformer", character") (5)
Name of Student: Mitojay Pandey Scholar No.: 23 (O 2028
INDIAN INSTITUTEOF INFORMATION
TECHNOLOGY BHOPAL
Department of Computer Science & Engineering
Mid-Term Examination April-2024
Subject Name/ Code: Data Structures &Algorithms (CS 102) MM: 20
Time Allotted: 90 min
BRANCH SEMeSTER - CsET
NOTE: 1. All questions are compulsory.
2.Mark answer number clearly.
1A An array Marks [1000] contans the marks between 0 and 100) obtained by 1000 |3
students in an examination, stored in increasing order (Marks[i<Marks [i+1] for all
). We wish to assign grades A, B and C to the students in an array Grades [10001, in
the following way. We frst determine the two positions in the MarkS array with the
largest GAPs between consecutive marks, and use these gaps to obtain the cut-offs
separating the grades. Write aprogram to perform the grade assignments:
Examplet:fthe marksare[l,2,5,6,16,11J then the grades are [C,C,B,B,A, AJ
Example 2: Ifthemarks are [1,2,5,8,11,12,12] then the gap of 3 appears at 3 places(2
5,5-8, and &-11) and the grades could be any of (C,C,B,B,A,A,AJ, [C,C,B,A,A,A,A]
or[C,C,C,B,A,A,A]. Your program should output any one ofthese arrays.
How can function overloading be achieved within a class in C++? Explain with an example, 4
highlighting the advantages of function overlcading in Object-Oriented Programming. Also, write
C++ program that defines a class AreaCalculator with overlozded functions to calculate the area
of a square, rectangle, and circle. The progr.m shouid prompt the user to enter the appropriate
dimensions and display the calculated areas.
2. What is the difference between a class and a structure in C++? How did the introduction of classes 4
improve upon the limitations of structures in C? Provide adetailed comparison with examples.
3.
Write aC++t program to create aclass called "Restaurant" with attributes for menu items. prices. 4
and ratings, and methods to add and remove items, and to calculate average rating.
4.
Write a program for invoice creation that has aclass called Invoice that a hardware store might use
to represent an invoice for an item sold at the store. An Invoice should include four picces of
information as instance variables-apart nun:ber (rype String), apart description (ype String), a
qhantity of the em being purchased (type int) and a price per item (double). Your class should
have acastctor thatinitializes the four inztance variables. Provite eset and agetmctod-ir
cach instance variable. In adäition, provide amethad named getlavoice Amount thai calculates the
mvoice amount (ie, multiplies the quantiy by the price per iten), then returns the amount as a
double value. Ifthe quantity is not positive, itshold be set to 0. Ifthe price per item is not positive,
it should be set to 0.0. Create the class InvoiceTest that demonstrates class Invoice's capabilities.