AUXILIUM CONVENT SCHOOL, BARASAT
Half Yearly Examination 2024 -2025
Nane Susntt Acharya% Subject: Computer Seience
Time: hrs. 3 Full Marks - 70
CLASS: XI
Part I
working wherever necessary. (20]
Attemptall the questions and show the
Questionl
„1. State the converse of p'+q.
[1]
2. State and prove the de-morgan's law.
3. A =«Sunil isa good batsman"
B=Sunil isa good bowler"
C= He has won matches for his team"
(3]
Convert the symbolic form into compound propositions:
i. (A +B')'
ii. (C=>B+A)
ii. A.C+B'
[2]
4. Draw the circuit diagram for P'+Q.R+(P.Q'.R)
5. Prove a=>b-b'=>a
[1]
6. In a binary number system, the leftmost bit is called
[1]
7. Define WFF.
Question 2
1. Read the code and answerthe following:
int i-0,c-0;
while(bl !-0||b2!-0)
Afitt}-int)(b1%10 + b2%10 + c)%2
c= (int)\b1%10 +b2%10 + c)/2
bl-bl/10;
b2=b2/10;
[2]
What will be the value of A[]when bl=100 and b2-101?
[1]
ii. What is the abovecode performing?
[3]
2. Rewrite the code by correcting the errors and state the output:
String ="Computer Science",;
System.out.printin(x.substring(1,5)+x.charAt(15));
[2]
3. State the difference between method and constructor.
Part II
SectionA
Ouestion3
[2x5-10]
Solvethe following:
1. Convert (2376)% into decimal and binary
2. Convert (FA74)16 into decimal and binary
3. Add (37AC)16 and (D451)6
4. Subtract (1100101),by (1001111)2 using 1's complement
5. Subtract (51046)%–(7576)using 8's complement
Ouestion4
[4]
using truth table and algebraically.
1. Prove that (a .a->b)=>bis a tautology (21
.(A+B'+C')
2. Draw a circuit diagram for (A+B)' (4]
pays bonus to his salesman as per the criteria:
3. Theowner of the company
involved in advertising and
If the salesman sells
product worth 50000/month but is not
marketing ofthe product.
and marketing of
• Is the salesman works on an off day/holiday and is involved in advertising
the product.
the festive seasons are on.
• Ifthe salesman works on an off day and when
Inputs :
P sells product worth 50000
F works in festival season
H working on an off day/holiday
A involved in advertisement and marketing
Output X [lindicates yes, 0 indicates no]
terms with AND() operator
Draw the truth table for the inputs and outputs given and join cach
Section B
Each program should contain variable deseription/comments
[10]
Question 5
details of the class is given below:
Design a class Magic to check ifa given number is a magic number. The
Datamember - n(stores the number)
Member functions
Magic( ) constructor to assign 0 ton
assigns parameter value to the number
void getnum(int nn)
int Sum digits( int) returns the sum of the digits of a number
.void ismagic ) checks if the given number is a magic number by calling the
sum digits(int) and display appropriate message.
Specify the class with the abovedetails. Assume the main function is already mentioned.
[10]
Question 6
Create a class password which accepts the full name and date of birth of a person and displays a eight digit
password by joining the first and last character of each name in uppercase followed by the date and last two
digits of the year. The date should be in dd/mm/yyyy format
Eg. Name - Ravi Kumar, DOB- 25/04/1982 Output- RIKR2582
[10]
Question7
injava to store the elements in a matrix of size MxM. Display the eleménts by replacing
Write a program
each element of the left and right diagonals with 0.
Neatness and handwriting 2)