Class XI - Worksheet
Class XI - Worksheet
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 3. (5 Marks )
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
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.
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.
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}.