CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII If the function AllocateMarks () is supposed to Allocate Marks for the records in the file MARKS.DAT based on their value of the member TimeTaken. Write C++ statements for the statement 1 and statement 2, where, statement 1 is required to position the file write pointer to an appropriate place in the file and statement 2 is to perform the write operation with the modified record. (b) Write afunction in C++ to print the count of the word is as an
independent word in at text file DIALOGUE.TXT. (c) Given a binary file GAME.DAT, containing records of the following structure 5. (a) Differentiate between primary key and alternate key. (b) Consider the following tables. Write SQL commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii) TABLE:SENDER TABLE : RECIPIENT (ii) To display the RecID), SenderName, SenderAddress, RecName, (iii) To display Recipient details in ascending order of RecName (iv) To display number of Recipients from each city (v) SELECT DISTINCT SenderCity FROM Sender; (vi) SELECT A. SenderName, B.RecName FROM Sender A, Recipient B WHERE A. SenderlD = B.SenderlD AND B.RecCity = ‘Mumbai’; (vii) SELECT RecName, RecAddress (viii) SELECT RecID, RecName 6. (a) State Distributive law and verify the same using truth table. (b) Write the equivalent Canonical Sum of Product expression for the following
Product of Sum Expression (c) Write the equivalent Boolean Expression for the following Logic Circuit. (d) Reduce the following Boolean expression using K-Map F(U,V,W,Z) = S (0, 1, 2, 3, 4, 10, 11) Paper By Mr. Ravi Kiran |