COMPUTER SCIENCE PAPER 1

Similar documents
COMPUTER SCIENCE Paper 1

COMPUTER SCIENCE. Paper 1

PART I. Answer all questions in this Part. While answering questions in this Part, indicate briefly your working and reasoning, wherever required.

ISC 2011 COMPUTER SCIENCE PAPER 1 THEORY

Computer Science Paper 1 (Theory) Part I While working questions in this part, indicate briefly your working and reasoning wherever required.


ISC 2009 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

ISC SPECIMEN PAPER Computer Science Paper 1 (Theory) Part I Question 1. [ 2 x 5 = 10] Question 2. [ 2 x 5 = 10] Question 3.

ISC 2010 COMPUTER SCIENCE PAPER 1 THEORY

COMPUTER SCIENCE. Paper-1 (THEORY) Three /tollrs

ISC 2016 COMPUTER SCIENCE (THEORY) Md. Zeeshan Akhtar

Solved PAPER Computer Science-XII. Part -I. Answer all questions

ISC 2007 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

ISC 2006 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

Good Earth School Naduveerapattu Date: Marks: 70

D o w n l o a d f r o m w w w. k i s h o r e p a n d i t. c o m

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

ISC 2017 COMPUTER SCIENCE (THEORY) Md. Zeeshan Akhtar

3. According to universal addressing, what is the address of vertex d? 4. According to universal addressing, what is the address of vertex f?

1. Mark the correct statement(s)

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Code No: R Set No. 1

COMPUTER APPLICATION

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Chapter 2 Combinational Logic Circuits

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs MAX MARKS : 70

QUESTION BANK FOR TEST

Review: Standard forms of expressions

COMPUTER APPLICATIONS

Code No: 07A3EC03 Set No. 1

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2


CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

COMPUTER SCIENCE PAPER 1 THEORY YEAR 2008

AE52/AC52/AT52 C & Data Structures JUNE 2014

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Propositional Calculus. Math Foundations of Computer Science

PROGRAMMING IN C AND C++:

5. (a) What is secondary storage? How does it differ from a primary storage? (b) Explain the functions of (i) cache memory (ii) Register

COMPUTER SCIENCE 2002 (Delhi Board)

Code No: R Set No. 1

Standard Forms of Expression. Minterms and Maxterms

Experiment 3: Logic Simplification

SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY ADITYA SILVER OAK INSTITUTE OF TECHNOLOGY

Sub: EM-III (14MA301) Section: A & B Date: 13/07/17 One Mark Questions: 1. a) Write the iterative formula to compute 3 N by Newton s method.

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

End-Term Examination Second Semester [MCA] MAY-JUNE 2006

Module -7. Karnaugh Maps

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 154) Pass Marks: 24

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Chapter 3. Boolean Algebra and Digital Logic

Topic 7: Algebraic Data Types

Simplification of Boolean Functions

Computer Science Foundation Exam. Dec. 19, 2003 COMPUTER SCIENCE I. Section I A. No Calculators! KEY

: Principles of Imperative Computation Victor Adamchik. Practice Exam - I

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

Combinational Circuits Digital Logic (Materials taken primarily from:

Circuit analysis summary

Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

CS 445: Data Structures Final Examination: Study Guide

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

ENGIN 112 Intro to Electrical and Computer Engineering

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Question 2. [5 points] Given the following symbolic constant definition

(3 Hours) N.B. (1) Question No. 1 is compulsory. (2) Attempt any four from the remaining six questions. (3) Figures to the right indicate full marks.

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

COMPUTER APPLICATIONS

First Semester - Question Bank Department of Computer Science Advanced Data Structures and Algorithms...

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

Computer Organization

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

Use the scantron sheet to enter the answer to questions (pages 1-6)

Bharati Vidyapeeth s College Of Engineering for Women Pune-43 Department E & TC. SE- Unit Test I Subject-DS

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

A graphical method of simplifying logic

CS302 Data Structures using C++

DKT 122/3 DIGITAL SYSTEM 1

Sample Paper of Computer for Class 10

NATIONAL UNIVERSITY OF SINGAPORE

Chapter 3. Gate-Level Minimization. Outlines

Program: BCA-Semester-II

Give one example where you might wish to use a three dimensional array

1. Which of the following circuits can be used to store one bit of data? A) Encoder B) OR gate C) Flip Flop D) Decoder

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

POWR IP PZ1/17

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Code No: R Set No. 1

END-TERM EXAMINATION

Standard Boolean Forms

Fundamental of I.T. (c) Application of computer *************

Draw a diagram of an empty circular queue and describe it to the reader.

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Transcription:

COMPUTER SCIENCE PAPER 1 (THEORY) (Maximum Marks: 70) (Time allowed: Three hours) (Candidates are allowed additional 15 minutes for only reading the paper. They must NOT start writing during this time.) ------------------------------------------------------------------------------------------------------------------------------- Answer all questions in Part I (compulsory) and six questions from Part-II, choosing two questions from Section -A, two from Section-B and two from Section-C. All working, including rough work, should be done on the same sheet as the rest of the answer. The intended marks for questions or parts of questions are given in brackets [ ]. --------------------------------------------------------------------------------------------------------------------- Question 1 PART I (20 Marks) Answer all questions. While answering questions in this Part, indicate briefly your working and reasoning, wherever required. (a) State Associative law and prove it with the help of a truth table. [1] (b) Draw the truth table to prove the proportional logic expression. (X => Y) ʌ (Y => X) = X <=> Y [1] (c) Find the dual for the Boolean equation: AB + BC + 1 = 1. [1] (d) Convert the Boolean expression F(X,Y,Z) = X Y Z + X YZ + XYZ into its cardinal form. [1] (e) Minimize: F = XY + (XZ) +XY Z using Boolean laws. [1] Question 2 (a) Differentiate between Stack data structure and Queue data structure. [2] (b) Convert the following infix notation to postfix notation A * ( B / C ) / E + F [2] (c) Define Interface. How is it different from a Class? [2] 1

(d) (e) Each element of an array arr[15][20] requires W bytes of storage. If the address of arr[6][8] is 4440 and the Base Address at arr[1][1] is 4000, find the width W of each cell in the array arr[ ][ ] when the array is stored as Column Major Wise. Define Big O notation. State the two factors which determine the complexity of an algorithm. [2] [2] Question 3 The following is a function of some class. What will be the output of the function test ( ) when the value of count is equal to 4? Show the dry run / working. void test (int count) { if (count = = 0) System.out.println( ); else { System.out.println( Bye + count); test( --count ); System.out.println( + count); } } 2

Question 4 PART II (50 Marks) Answer six questions in this part, choosing two questions from Section A, two from Section B and two from Section C. SECTION - A Answer any two questions. (a) Given the Boolean function F(A, B, C, D) = ( 0, 2, 3, 6, 8, 10, 11, 14, 15 ) (i) (ii) Reduce the above expression by using 4-variable Karnaugh map, showing the various groups (i.e. octal, quads and pairs). Draw the logic gate diagram for the reduced expression. Assume that the variables and their complements are available as inputs. (b) Given the Boolean function F(P,Q,R,S) = π ( 5, 7, 8, 10, 12, 14, 15 ) (i) (ii) Reduce the above expression by using 4-variable Karnaugh map, showing the various groups (i.e. octal, quads and pairs). Draw the logic gate diagram for the reduced expression. Assume that the variables and their complements are available as inputs. [4] [1] [4] [1] Question 5 (a) Draw the logic diagram and truth table to encode the decimal numbers ( 2, 3, 5, 7, 8 ) and briefly explain its working (b) Simplify the following Boolean expression and draw the gate for the reduced expression: F= A B + AB C + A [3] (c) Define Universal gates. Give one example and show how it works as an OR gate. [2] Question 6 (a) Draw a truth table with a 3 input combination which outputs 1 if there are odd number of 0 s. Also derive an SOP expression for the output. Reduce the expression using Karnaugh Map. (b) Define Proposition. How does tautology differ from contradiction? [3] (c) Draw the logic diagram of 4:1 Multiplexer. [2] 3

SECTION B Answer any two questions. Each program should be written in such a way that it clearly depicts the logic of the problem. This can be achieved by using mnemonic names and comments in the program. (Flowcharts and Algorithms are not required.) Question 7 The programs must be written in Java. A class Composite contains a two dimensional array of order [m x n]. The maximum value possible for both m and n is 20. Design a class Composite to fill the array with the first (m x n) composite numbers in column wise. The details of the members of the class are given below: [10] Class name : Composite Data members/instance variables: arr[ ] [ ] : stores the composite numbers column wise m : integer to store the number of rows n : integer to store the number of columns Composite(int mm, int nn ) : to initialize the size of the matrix m=mm and n=nn int iscomposite( int p ) : returns 1 if number is composite otherwise returns 0 void fill ( ) : to fill the elements of the array with the first (m n) composite numbers in column wise void display( ) : displays the array in a matrix form Specify the class Composite giving details of the constructor(int,int), int iscomposite(int), void fill( ) and void display( ). Define a main( ) function to create an object and call the functions accordingly to enable the task. 4

Question 8 Design a class Sort which enables a word to be arranged in alphabetical order. The details of the members of the class are given below : [10] Class name : Sort Data members/instance variables: str len : stores a word : to store the length of the word Methods/Member functions: Sort( ) void readword( ) void arrange ( ) void display( ) : default constructor : to accept the word : to arrange the word in alphabetical order using any standard sorting technique. : displays the original word along with the sorted word Specify the class Sort giving details of the constructor, void readword( ), void arrange( ) and void display( ). Define the main( ) function to create an object and call the functions accordingly to enable the task 5

Question 9 A Special number is a number in which the sum of the factorial of its digits is equal to the number. Example: 145 ( 1! + 4! + 5! = 145 ). Thus, 145 is a Special number. Design a class Special to check if the given number is a Special number or not. Some of the members of the class are given below: [10] Class name : Special Data member/instance variable: n : integer to store number Special( ) : default constructor void read( ) : to accept the number int factorial(int x) : return the factorial of a number using recursive technique boolean isspecial( ) : checks for the special number by invoking the function factorial( ) and returns true if Special, otherwise returns false void display( ) : displays the result with an appropriate message Specify the class Special, giving details of the Constructor, void read( ), int factorial(int), boolean isspecial( ) and void display( ). Define the main() function to create an object and call the member function according to enable the task. 6

SECTION C Answer any two questions. Each Program should be written in such a way that it clearly depicts the logic of the problem step wise. This can also be achieved by using comments in the program and mnemonic names or pseudo codes for algorithms. The program must be written in Java and the algorithms must be written in general / standard form, wherever required / specified. (Flowcharts are not required.) Question 10 An interface Shape is defined with a method area() which returns the area of the implementing shape. Create the classes Circle and Rectangle which implement the interface Shape. These classes have attributes which reflect their dimensions (radius for a circle, height and width for a rectangle) which are set by their constructors. The details of the members of the interface and both the classes are given below: Interface name double area() Class name Data members/instance variables: radius Circle(int r) double area() : Shape : returns the area of the implementing shape : Circle : to store radius of the circle in decimal : parameterized constructor to initiallize radius=r : to calculate area of the circle [ area of a circle is 3.14*radius*radius] Class name Data members/instance variables: length breadth Member functions / methods Rectangle(int l, int b) double area() : Rectangle : to store length of the rectangle in decimal : to store breadth of the rectangle in decimal : parameterized constructor to initialize length=l, breadth=b : to calculate area of the rectangle [ area of a rectangle is length*breadth] Assume that the Interface Shape has been defined. Using the concept of inheritance, specify the classes Circle and Rectangle giving details of their constructors and double area( ) respectively. The interface, main function and algorithm need NOT be written. 7

Question 11 Circular Queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. Define a class Cqueue with the following details: Class name : Cqueue Data member/instance variable: ele[ ] : array to hold the integer elements cap : stores the maximum capacity of the array front : to point the index of the front rear : to point the index of the rear. Cqueue(int max) : constructor to initialize the data member cap = max, front = rear = 0 and create the integer array void insert(int v) : to add integers from the front index if possible else display the message( full from rear ) int delete( ) : to remove and return elements from rear, if any, else returns -999 void display() : to display elements of circular queue Specify the class Cqueue giving the details of void insert(int) and int delete( ). Assume that the other functions have been defined. The main( ) function and algorithm need NOT be written. 8

Question 12 (a) A linked list is formed from the objects of the class Node. The class structure of the Node is given below: Class Node { int num; Node next; } [2] Write an Algorithm OR a Method to insert a node at the beginning of an existing linked list. The method declaration is as follows: void InsertNode( Node starptr, int n ) (b) Answer the following questions from the diagram of a Binary Tree given below: (i) Name the Root and the leaves of the tree. [1] (ii) Write the post order traversal of the tree. [1] (iii) Separate the Internal nodes and the External nodes of the tree. [1] (NOTE: The total weightage of questions in the Question Paper will be as indicated in the Specimen Paper. However, breakup of subparts in questions may vary from year to year.) 9