ICSE 2008, Computer Science, Sample Question Paper 3, Class XII

Add to Favourites
Post to:

Sample Paper – 2008 Class – XII Subject – Computer Science TIME: 03.00 HRS MM: 80 PART – I (Attempt all questions) Q1. a) Simplify using Boolean algebra. At each step state clearly the laws used X.Y. ( X.Y + Y.Z ) [2] b) State the De Morgan’s Laws. Verify any one of them using the truth table. [2] c) Find the complement of F (a, b, c, d) = [a + { ( b + c ) . ( b’ + d’ )}] [2] d) What is the difference between a data type struct and data type class in C++? [2] e) Draw the logic gate diagram and truth table for XOR gate. [2] Q2. a) What is the difference between syllogism and premises? [2] b) What do you understand by a contrapositive statement? Explain giving example. [2] c) Differentiate between universal and fundamental gates. [2] d) Give any four examples of non-primitive data types. [2] e) What do you mean by Grey Code? How is it different from Binary Code? [2] Q3. a) Draw the simplified diagram using NAND gates F ( A, B, C )= ( ( 0, 1, 2, 5 ) [2] b) In an array of real numbers ARR[-25 . . . 10, -10 . . . 20 ], Base Address is 1234. Find the address of ARR[6][8] when the array is stored row-major wise. Assume each real number requires 4 bytes. [2] c) What do you mean by Idempotence law? Explain giving example. [2] d) Differentiate between runtime error and syntax error. [2] e) Which escape sequence represents i) Audible bell (alert) ii) Question Mark. [2] PART II Section – A (Attempt THREE questions ) Q4. a) State the difference between half adder and full adder circuits giving the details of truth table and the circuit diagram of both adders. [6] b) Show that the dual of the XOR is equal to its complement. [4] Q5. a) Draw a logic circuit which converts hexadecimal to machine language form. [6] b) Implement a full adder circuit with a decoder. [4] Q6. a) Given the following expression: F (u, v, w, z) = ( (0, 1, 3, 5, 7, 9, 10, 11, 12, 13, 14, 15) [5] Make the Karnaugh’s map for the given Boolean equation Simplify using k-map b) What is a decoder? Draw the truth table and a logic circuit diagram for a 2 by 4 decoder. [5] Q7. a) Give the output of the following: [3+4] int m=1, n=2; m+=n++; n+=m++; m+=n++ + ++n; cout<classes: “book”, which adds a page count (type int); and “tape”, which adds a playing time in minutes(type float). Each of these three classes should have a getdata() function to get its data from the user and putdata() function to display its data. Write a main() program to test the book and tape classes by creating instances of them, asking the user to fill in their data with getdata(), and then displaying the data with putdata(). Q12. A class Text is designed to handle text related operations. Some functions of class Text are as follows: Class : Text Data Member : txt – to store the given string. (maximum length – 80) Member Function Text() : constructor void readText() : reads the given string from the input char charAt(int i) : returns the character at position i of the string int length() : returns the length of the string int noOf Words() : returns the number of words in the text int noOfWhiteSpace(): returns the total number of white spaces in the text Specify the class Text giving the details of all functions. Don’t use any built-in function to perform these functions. Q13. Define a Movie with the following specifications : Data members Member functions Name of the movie - to initialize data members Date of releasing - to display the movie details Name of the director - to update the total collection at the end of every week. Total collection Write the code for the member functions. You do not need to write the main function. Q14. Class Name : Point Member Data : x ( x coordinate), y ( y coordinate ) Member Function : Constructors – Default and Parameterized void display() - display point double findDistance( Point) - inputs a point as parameter and returns distance between them Point findMidPoint( Point ) - inputs a point as parameter and returns mid point -------- X ------ http://www.icseguess.com/ ------------------------------------------------------------------------------------------------------- www.icbseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com

Description
This content is useful for ICSE Students

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
62 Followers

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect