0% found this document useful (0 votes)
2 views

Class XI - Worksheet

This document is a practice worksheet for Class XI, containing multiple-choice questions (MCQs), short answer questions, and programming tasks related to computer science concepts. It covers topics such as functions, data types, digital circuits, cyber security, and programming in Java. The worksheet includes various exercises aimed at testing students' understanding and application of these concepts.

Uploaded by

diyapathak2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Class XI - Worksheet

This document is a practice worksheet for Class XI, containing multiple-choice questions (MCQs), short answer questions, and programming tasks related to computer science concepts. It covers topics such as functions, data types, digital circuits, cyber security, and programming in Java. The worksheet includes various exercises aimed at testing students' understanding and application of these concepts.

Uploaded by

diyapathak2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Class-XI

Practice –worksheet
_________________________________________________________________________________________________________________________
1. MCQ (1 Marks)
i) Function not returning any value has return type as :
a) int b) char c) float d) void
ii) A function can return _________________ values.
a) 1 b) 2 c) 3 d) 4
iii) The parameter appearing in function definition are called
a) actual parameters c) call parameters
b) formal parameters d) All of the above
iv) The function that change the state of its parameter is called
a) Pure function c) change function
b) Impure function d) none of the above
v) One function, many definitions, is called
a) Function enlargement c) function loading
b) Function overloading d) all of the above
vi) ________An anomalous situation encountered by the program.
a) Syntax error c) Exception
b) Interrupt program d) Logical error
vii) ____________Group of related classes and interfaces.
a) Java Package c) Accessor Method
b) Lang Package d) none of these
viii) Hexa Decimal number system has__________ digits.
a) 8 b) 7 c) 16 d) 10
ix) Assertion: Every number system has a set of unique characters or literals.
Reason: The count of these literals is called radix.
a) Both Assertion and Reason are true and Reason is the correct explanation for Assertion.
b) Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
c) Assertion is true and Reason is false.
d) Assertion is false and Reason is true.
x) What is a full form of EBCDIC
a) Extended Binary Coded Decimal Interchange Code
b) Extra Binary Coded Digit Interchange Code
c) Expands Byte Coded Decimal Interchange Code
d) Extended Binary Coded Decimal Interconnected Code
xi) _________A logic circuit whose output is 0 only when all inputs are 1.
a) OR Gate b) AND Gate c) NAND Gate d) NOR Gate
xii) Elementary atomic sentence that may either be true or false.
a) Syllogism b) connectivity c) Proposition d) Gate
xiii) Assertion: Spam sending of bulk mail by an identified or unidentified source.
Reason: Spam folder present in Instagram.
a) Both Assertion and Reason are true and Reason is the correct explanation for Assertion.
b) Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
c) Assertion is true and Reason is false.
d) Assertion is false and Reason is true.
xiv) Assertion: A buffer is a temporary storage used to hold data until enough has been collected
that it is worth transferring.
Reason: Buffering can not be used for both input and output.
a) Both Assertion and Reason are true and Reason is the correct explanation for Assertion.
b) Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
c) Assertion is true and Reason is false.
d) Assertion is false and Reason is true.
xv) String Tokenizer class is found in _________ package.
a) java.util b) java.lang c) java.IO d) java.awt
xvi) Which is 8’s complement of (347)8?
a) 430 b) 431 c) 314 d) 432
xvii) Which is 16’s complement of ( C5A)16?
a) 3A6 b) 3A5 c) 3B6 d) 3C5
xviii) Distributive law states that:
a) A + B • C = (A + B) • (A +C) c) A + ( A • B) = A
b) A • (B + C) = (A • B) + (B • C) d) A + B • C = A • B + A • C
xix) Given below are two statements marked Assertion and Reason. Read the two statements
Carefully and choose the correct option.
Assertion: Array indices start from 0 and are uptil size 1.
Reason: Array elements are stored in the contiguous memory location.
a) Both Assertion and Reason are true and Reason is the correct explanation for Assertion.
b) Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
c) Assertion is true and Reason is false.
d) Assertion is false and Reason is true.
xx) The keyword this-
a) only pertains to an instance method, not to a class method
b) is an implicit argument to this instance of the class
c) is accessible inside of any instance method
d) All of these
xxi) Select the expression that is equivalent to x.(x’+y)+y
a) x.x’+y.(1+x) b) 0+x.y+y c) x.y d) y
xxii) The Proposition operator ∧ represents:
a) Negation b) Implication c) Conjunction d) Disjunction
xxiii) What do you mean by contingency?
xxiv) What do you mean by constructor?
xxv) Deffentiate between pure and impure function ?
xxvi) What is operator and function overloading?
xxvii) What do you understand by AI?
xxviii) What are email etiquettes?

Question 2 (2 and 3 Marks )

i) Difference between call by value and call by reference.


ii) Define worms and Trojan horse virus.
iii) What is cybercrime? How to protect by cyber security?
iv) Define terms: IoT, Eavesdropping, Snooping,denial services attach,firewall,VR and AR,phishing
v) Explain IPR?
vi) Write advantages of using functions in programs.
vii) Why is base case so important in a recursive function?
viii) Compare iteration and recursion.
ix) What are the advantages of exception handling?
x) Differentiate between String and String Buffer object.
xi) How do we define try and catch block?

Question 3. (5 Marks )

i) Draw the diagram of digital circuit for the function: F(a,b,c)=AB+AC’+B’A’C.


ii) Draw the diagram of digital circuit for the function: F(X,Y,Z)=(X+Y) . (X’+Z’) . (Y+Z)
iii) Add the binary numbers
a) 110100 and 101100 b) 111000 and 111011 c) 111111 and 1001100
iv) Subtract the binary numbers 101110 and 010101.
v) Convert (1010111010)2 to hexadecimal.
vi)Convert (3664)8 to binary.
vii) Convert (301)10 to binary.
viii) Name the File Stream class to perform the following operations.
(a) To write data into binary file
(b) To read data from a text file
ix) Minimize F= PQ + (PR)’ + PQ’R using Boolean laws.
x) a) Draw the diagram of digital circuit for the function
F(A,B,C)=(A + B) . (A’ + C’) . (B + C)
b) Draw the truth table to represent a two input XOR gate.
xi) The following function Task() is a part of some class. Assume ‘m’ and ‘n’ are positive integers,
greater than 0.
Answer the questions given below along with dry run/working.
int Task(int a, int b)
{ if(a==b)
return a;
else if(a>b)
return Task(a–b,b);
else return Task(a,b–b); }
a) What will the function Task( ) return when the value of a = 20 and b= 40?
b) What function does Task( ) perform, apart from recursion?

xii) Perform the following conversion /operations:


a) (11011110101110)2 = (?)16 b) (453)8 = (?)2 c) (BA9)16 = (?)2
d) (100100 - 100011) using 1’s and 2’s complement e) (1466)8 + (4450)8

xiii) a) Seven inverters are cascaded one after another. What is the output if the input is 1?
b) Given the following circuit :
What is the output if :
(i) both inputs are FALSE
(ii) one is FALSE and the other is TRUE?
c) Derive the expression for a Full Adder with circuit diagram.
xiv)
a) Draw the simplified logic diagram using only NAND gates to implement :
X’ Y’ Z’ + X’ Y’ Z + X’ Y Z + X Y’ Z

b) Verify using truth table that (X + Y)’ = X’ . Y’


Question 4 (10 Marks)

1. Write a program to input the order and elements of a Matrix. Find and print the largest and the
smallest element of the matrix and print along with their location numbers. Also print the matrix.

2. Write a program to input the order (row size and column size both) of two matrixes. Check if they
can be multiplied or not. If yes, then multiply the two matrices. Print both the original matrices as
well as the product matrix.

3. Design a class name IIT with the following description:


Instance variables /Data members:
String name To store the name of the customer
long mobno To store the mobile number of the customer
double cost To store the cost of the items purchased
double dis To store the discount amount
double amt To store the amount to be paid after discount

Member methods:
IIT( ) default constructor to initialize data members
void inp( ) To input customer name, mobile number, cost
void calc( ) To calculate discount on the cost of purchased items, based on following criteria.
Cost Discount (in
percentage)
Less than or equal to 10000 Rs. 4%
More than 10000Rs.and less than or equal to 25000Rs. 10.5%
More than 25000 Rs. And less than or equal to 45000 Rs. 12.5%
More than 45000Rs. 21.5%

void disp( ) To display customer name, mobile number, amount to be paid after discount
Write a main method to create an object of the class and call the above member methods.

4. Write a program to input order and elements a matrix Mat[ ][ ]. Print the upper and lower
triangle of the matrix.
5. Write a program to input order and elements a matrix Mat[ ][ ].Print the sum of boundary
elements and diagonal elements.

6. Predict the output of the following code fragments:


(a) (b)
Public static int try( ) Public static void int rti( )
int i=1,j=0,n=0; int j=2,s=0;
while(i<5){ while(j<10){
for(j=1;j<=I;j++){ System.out.println(j+ ”+”);
n+=1;} s=s+j;
i=i+1;} j=j+j%2;}
System.out.println(n); System.out.println(“=” +s);

7. Write a program to take input as Decimal number and convert this entered number to Binary,
Octal and Hexadecimal number using method recursive function.
INPUT : 200 OUTPUT : BINARY : 11001000 OCTAL : 310 HEXADECIMAL : C8

8. Write a program Upper-Half which takes a two dimension array A, with size N rows and N
columns as argument and point the upper half the array.

9. Write a Program to Search a position of given element using binary search technique with
recursive function.
Input_Array [ ] = {2, 5, 13, 67, 48, 68, 10, 5}.

You might also like