CBSE Previous Year Solved  Papers  Class 12 Computer Science Outside Delhi 2012

Time allowed : 3 hours                                                                                           Maximum Marks: 70

General Instructions :

  1.  There are a total of 26 questions and five sections in the question paper, All questions are compulsory.
  2. Section A contains question number 1 to 5, Very Short Answer type questions of one mark each.
  3.  Section B contains question number 6 to 10, Short Answer type I questions of two marks each.
  4.  Section C contains question number 11 to 22, Short Answer type II questions of three marks each.
  5.  Section D contains question number 23, Value Based Question of four marks.
  6. Section E contains question number 24 to 26, Long Answer type questions of five marks each.
  7. There is no overall choice in the question paper, however, an internal choice is provided in one question of two marks, one question of three marks and all three questions of five marks. An examined is to attempt any one of the questions out of two given in the question paper with the same question number.

Question.1.(a) Give the difference between the type casting and automatic type conversion. Also, give a suitable C++ code to illustrate both.
Answer:
br-lazy"
1(b)Which C++ header file(s) are essentially required to be included to run/execute the following C++ source code(Note: Do not include any header file, which is/are not required) :
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-2
Answer:
(iv) iostream.h
(v) string.h
1(c) Rewrite the following program after removing the syntactical error(s) (if any). Underline each correction.
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-3
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-4
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-5
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-6
1 (d) Find the output of the following program :
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-7
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-8
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-9
1(e) Find the output of the following program :
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-10
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-11
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-12
1(f) Observe the following program and find out, which output(s) out of(i) to(iv) will not be expected from the program? What will be the minimum and the maximum value assigned to the variable chance?
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-13
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-14

Question.2.(a) What is the difference between the members in private visibility mode and the members in protected visibility mode inside a class ? Also, give a suitable C++ code to illustrate both.
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-15
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-16
2. (b) Answer the question (i) and (ii) after going through the following class.
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-17
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-18

  1.  In Object Oriented Programming, what are Function 1 and Function 4 combined together referred as?
  2.  In Object Oriented Programming, which concept is illustrated by Function 3? When is this function called/ invoked?

Answer:

  1.  Polymorphism OR Constructor Overloading
  2.  Function 3: Destructor ‘
    A destructor called/invoked when an object of that class is destroyed. When a variable goes out of scope, or a dynamically allocated variable is explicitly deleted using the delete keyword, the class destructor is called to help clean up the class before it is removed from memory.

2. (c) Define a class RESTRA in C++ with following description: Private Members:

  • FoodCode of type int
  •  Food of type string
  •  FType of type string
  •  Sticker of type string
  • A member function GetSticker() to assign the following values for Sticker as per the given Ftype
    br-lazy"

Public Members:

  •  A function GetFoodO to allow user to enter values for FoodCode, Food,Ftype and call function „ GetSticker( ) to assign Sticker.
  •  A function ShowFoodO to allow user to view the concept of all the data members.

Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-20
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-21
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-22
2. (d) Answer the questions (i) to (iv) based on the following :
class COMPANY
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-23
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-24
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-25

  1.  Name the type of inheritance illustrated in the above C++ code.
  2.  Write the names of data members, which are accessible from member functions of class SHOP.
  3.  Write the names of all the member functions, which are accessible from objects belonging to class FACTORY.
  4.  Write the names of all the members, which are accessible from objects of class SHOP.

Answer:

  1. Hierarchical Inheritance
  2.  None of the data members can be accessible except SHOP class data members.
  3.  Register!),Enter!) and Show( ) of Factory class.
  4.  Input! ( ) Output!( )

Question.3. (a) Write a function SWAP2BEST (int ARR[],int Size) in C++ to modify the content of the array in such a way that the elements, which are multiples of 10 swap with the value present in the very next position in the array.
For example
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-26
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-27
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-28
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-29
3. (b) An arrayT[20][10] is stored in the memory along the column with each of the element occupying 2 bytes, find out the memory location of T[10] [5],if an element T[2] [9] is stored at location7600.
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-30
3. (c) Write a function in C++ to perform insert operation in a static circular Queue containing Book’s information (represented with the help of an array of structure BOOK).
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-31
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-32
3. (d) Write a function ALTERNATE (int A[][3],int N,int M) in C++ to display all alternate element from two¬dimensional array A (starting from A[0] [0]).
For example:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-33
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-34
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-35
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-36
(e) Evaluate the following POSTFIX notation. Show status of stack after every step of evaluation (i.e. after each operator):
True, False, NOT, AND, False, True, OR, AND
Answer:
br-lazy"
br-lazy"
br-lazy"

Question.4. (a)Student try to answer this question Observe the program segment given below carefully and the question that follow:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-40
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-41

  1. Write statement 1 to position the file pointer to the appropriate place, so that the data updation is done for the required item.
  2.  Write statement 2 to perform the write operation so that the updation is done in the binary file.

Answer :
Statement 1 – File.seekp(Success);
Statement 2 – File.write((char*) &S, sizeof(S));
(b) Write a function in C++ to read the content of a text file “DELHI.TXT” and display all those lines on screen, which are either starting with ‘D’ or starting With ‘M’
Answer.
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-42
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-43
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-44
(c) Write a function in C++ to search for the details (Phoneno and Calls) of those Phones, which have more , than 800 calls from a binary file “phones.dat”. Assuming that this binary file contains records/objects of class Phone, which is defined below.
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-45
Answer:
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-46

Question.5. (a) Give a suitable example of a table with sample data and illustrate Primary and Alternate Keys in it.
Answer : Primary Key : Primary key is a set of one or more fields/columns of a table that uniquely identify a record in database table. It cannot accept null, duplicate values. Only one candidate key can be primary key.
Alternate key : Alternate key is a key that can be work as a primary key. Basically it is a Candidate key that currently is not primary key.
Example : In below table Admission No. becomes Alternate Keys when we define Registration No. as Primary Key.
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-47
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-48
(b) Write SQL commands for the following statements :

  1.  To display the names of all the silver colored Cars.
  2. To display name of car, make and capacity of cars in
    descending order of their sitting capacity.
  3. To display the highest charges at which a vehicle can be hired from CARDEN.
  4. To display the customer name and the corresponding name of the cars hired by them.

Answer:

  1. SELECT CarName FROM carden WHERE Color = ‘Silver’;
  2.  SELECT CarName,Make,Capacity FROM carden ORDER BY Capacity DESC;
  3. SELECT MAX(Charges) FROM carden;
  4. SELECT Cname,CarName FROM carden,customer WHERE

carden. Ccode=customer.Ccode;

(c) Give the output of the following SQL queries :
(i) SELECT COUNT (DISTINCT Make) FROM CARDEN;
(ii) SELECT MAX(Charges),MIN(Charges) FROM CARDEN;
(iii) SELECT COUNT (*) ,Make FROM CARDEN;
(iv) SELECT CarName FROM CARDEN WHERE Capacity=4;
Answer:
br-lazy"

Question.6.(a) Verify the following using truth table :
(i) X.XN0
(ii)X+l=l
Answer:
br-lazy"
(b) Write the equivalent Boolean Expression for the following Logic Circuit:
br-lazy"
(c)Write the SOP form of a Boolean .Function F, which is represented in a truth table as follows :
br-lazy"
(d) Reduce the following Boolean Expression using K-Map :
F(A,B,C,D) =∑(2,3,4,5,6,7,8,10,11)
Answer:
br-lazy"

Question.7.(a) What out of the following, Svill you use to have an audio-visual chat with an expert sitting in a far-away place to fix-up a technical issue?
(i) VoIP
(ii)email
(iii)FTP
Answer: (i) VoIP
(b) Name one server side scripting language and one client side scripting language.
Answer:

  •  Client side script:
    (a) Javascript
  • server side script:
    (a) ASP

(c)Which out of the following comes under Cyber Crime?

  1. Operating someone’s internet banking account, without his knowledge.
  2. Stealing a keyboard from someone’s computer.
  3. Working on someone’s computer with his/her permission.

Answer:

  1. Operating someone’s internet banking account, without his knowledge.
    (d) Write one advantage of bus topology of network. Also, illustrate how 4 computers can be connected with each other using star topology of network.
    Answer:
    br-lazy"

(e) Workalot consultants are setting up a secured network for their office campus at Gurgaon for their day- to-day office and web-based activities. They are planning to have connectivity between 3 buildings and the head office situated in Mumbai. Answer the questions (i) to(iv) after going through the building positions in the campus and other details, which are given below :
br-lazy"
br-lazy"

  1. Suggest the most suitable place (i.e. building) to house the server of this organization. Also give a reason to justify your suggested location.
  2. Suggest a cable layout of connection between the buildings inside the campus.
  3. Suggest the placement of the following device with justification:
    (1) Switch
    (2) Repeater
  4. The organization is planning to provide a high speed link with its head office situated in MUMBAI using a wired connection. Which of the following cables will be most suitable for this job?
    (1) Optical Fiber
    (2) Co-axial Cable
    (3) Ethernet Cable

Answer: (i)
RED building because maximum number of computers are there
OR
BLUE building because closest to all other building (minimum cable length required)
Answer: (ii)
cbse-previous-year-solved-papers-class-12-computer-science-outside-delhi-2012-57
Answer: (iii)
Switch. By using 1 switch per building we can use maximum numbers of computers to connect them in network.
Answer : (iv) Optical Fiber
(f) Give one suitable example of each URL and Domain Name.
Answer: URL – http://www.cbsecsnip.in/index.php Domain – cbsecsnip
(g) Name two Proprietary software along with their application.
Answer:
(i) Microsoft Office : Microsoft Office belongs to Microsoft Corporation. This software is used for office automation and also can be used other than office productivity at personal level. Microsoft Office contains following other applications like Microsoft Word, Microsoft Excel, Microsoft PowerPoint, etc.
(ii)Oracle : Oracle Corporation is the owner of Oracle software. Oracle is one of most popular RDBMS software in world.