Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CARMEL SCHOOL, GORAKHPUR

ANNUAL EXAMINATION 2014-2015 M.M.80


CLASS XI COMPUTER TIME: 2HRS
Part 1 Answer all questions.
Question 1.
a.       Verify that A+A=A using truth table. State the law.

c.       State the principal of Duality .Write the dual of (P+Q`).R.1=P.R+Q`.R


d.      Minimize the expression using Boolean Laws
E=(A+B`).(B+CD)`
Question 2.

b.      If X->Y then write its: Converse and Contrapositive.


e.      Draw the logic diagram for F=A`B`+AB.
 
Question 3.
Predict the output of the following snippet :
1.       void check(int x[])
{
int l= x.length;
int m=x[0],n=x[0];
for(int j=0;j<l;j++)
{
if(m>x[j])
m=x[j];
if(n<x[j])
n=x[j];
}
System.out.println(“Values are :  m “+ m + “  n “ + n);
}
1.       What will be the output if the input is 8, 5,2,9,4?
2.       What is the above code computing?
 
2.
void fun(char s[],int x)
{
string st=””;
int i;
int l=s.length;
for(i=0;i<x,i++)
{
st=st+s[i];
}
System.out.println(“String is : “+st);
}
1.       Predict the output for s[]={‘J’,’U’,’N’,’E’} and x=2?
2.       Predict the output for s[]={‘J’,’U’,’L’,’Y’} and x= 4?
Part 2
SECTION A (Attempt any three questions)
Question 6.
a. Simplify the Boolean Equation using Boolean Laws :                                                          [3]
A.B’+A’B+AB+A’B’
b. Using truth table verify : (~p -> q) ^ p = ( p  ^  q’) v (p ^ q)                                     [4]
c. Draw the Logic circuit for :  A’B’(BCD+AB)                                                           [3]
 
Question 7.
a. State the difference between half adder and full adder .                                 [6]
b. Write the Expression and draw the Logic circuit for  2 – input XOR and XNOR [4]
 
SECTION B(Attempt any four Questions)
Question 9.
Write a program to store 10 numbers each in two different  S.D.A. merge all elements in a
third array. Display the resultant array in ascending order .
 
Question 10.
Write a program to input a string and frame a word using the first and last character of
every word in the string .Display the word in alphabetical order .
 
Question 11.
Write a program to input the values for m and n such that m < n . Display all the fibonancii
numbers from m to n.
 
 
**********************

You might also like