Cs Xii Guess Paper - 1 2015
Cs Xii Guess Paper - 1 2015
Cs Xii Guess Paper - 1 2015
2
1
XII-CS 2014-15
2
Page 1 of 8
#include <iostream.h>
#include<conio.h>
extern int start=100;
void prnseries()
{
static int start=10;
start=start/2;
cout<<start<<":\t";
(f)
2.
(a)
}
void main()
{
int i=3;
clrscr();
for(int j=1;j<=i;j++)
prnseries();
cout<< "\n"<<"start="<<start;
getch();
}
Find the output of the following program:
#include<iostream.h>
#include<conio.h>
#include<ctype.h>
class Class
{
int Cno,total;
char section;
public:
Class(int no=1)
{
Cno=no;
section='A';
total=30;
}
void admission(Class &C,int c=20)
{
C.section++;
C.total+=c;
}
void ClassShow()
{
cout<<Cno<<":"<<section<<":"<<total<<endl;
}} ;
void main()
{Class C1(5),C2(7);
C1.admission(C2);
C2.admission(C1,5);
C1.ClassShow();
C2.ClassShow();
}
How private inheritance mode is different from private visibility
mode? Explain with example.
XII-CS 2014-15
Page 2 of 8
(b)
Answer the questions (i) and (ii) after going through the following class:
void main()
{
Conference CF(50); //statement-1
CF.session(); //statement-2
Stream
Fees
Page 3 of 8
(d)
(i)
(ii)
(iii)
(iv)
Percentage >= 90
Science
20000
Percentage <90 but >=80
Commerce
18000
Percentage <80 but >= 70
Arts
14000
Public Members:
i)
A constructor to input the values of admno, cname and Percentage and
invoke AssignStreamNFees().
ii)
A function showData( ) to display the value of all the data members.
Answer the questions (i) to (iv) based on the following:
class CUSTOMER
{
int Cust_no;
protected:
void Register();
public:
CUSTOMER();
void Status();
char Cust_Name[20];
};
class SALESMAN: public CUSTOMER
{
int Salesman_no;
char Salesman_Name[20];
protected:
float Salary;
public:
SALESMAN();
void Enter();
void Show();
};
class SHOP : private CUSTOMER
{char Voucher_No[10];
char Sales_Date[8];
public:
SHOP();
void Sales_Entry();
void Sales_Detail();
};
Write the names of data members which are accessible from objects belonging to class
SHOP.
Write the names of all the member functions which are accessible from objects of
class SALESMAN.
Write the names of all the members which are accessible from member functions of
class SHOP.
How many bytes will be required by an object belonging to class SALESMAN?
XII-CS 2014-15
Page 4 of 8
3. (a)
2
STAC
(b)
(c)
(d)
(e)
Evaluate the following postfix expression and show status of stack after each
operation.
(f)
Convert the following infix expression to its equivalent postfix expression showing
the stack contents for the conversion: A * ( B + D ) / E F (G + H / K)
Write a function in C++ to count and display the number of four letter words in the
file
WORDS.TXT.
2
Example: If the file contains:
This is a C++ book. It contains good programming questions.
Then the output should be: 2
Consider the class VINTAGE declared below, write a C++ function to read the objects of
VINTAGE from binary file VINTAGE.dat and display those vehicles that are priced
between 200000 and 250000.
4. (a)
(b)
XII-CS 2014-15
Page 5 of 8
(c)
(a)
Observe the program segment given below carefully and fill the
blanks
marked as Statement 1 and Statement 2 using seekp() and seekg()
functions
for performing the required task. 1
#include <fstream.h>
class Item
{int Ino;char Item[20];
public:
//Function to search and display the content from a particular record
number
void Search(int );
//Function to modify the content of a particular record number
void Modify(int);
};
void Item::Search(int RecNo)
{fstream File;
File.open("STOCK.DAT",ios::binary|ios::in);
______________________ //Statement 1
File.read((char*)this,sizeof(Item));
cout<<Ino<<"==>"<<Item<<endl;
File.close();
}
void Item::Modify(int RecNo)
{fstream File;
File.open("STOCK.DAT",ios::binary|ios::in|ios::out);
cout>>Ino;
File.getline(Item,20);
______________________ //Statement 2
File.write((char*)this,sizeof(Item));
File.close();
(i) Explain Unique key with example.
XII-CS 2014-15
Page 6 of 8
(ii) A table GAMES has 6 columns and 5 rows. What will be its cardinality and
degree?
(b)
(e)
Seven NOT gates are cascaded one after another. What will be the output if input is 0.
Also show the diagram.
7. (a) Define the term Bandwidth. Give any one unit of Bandwidth.
(b) Name the device used to connect a computer to an Analog Telephone
Line.
(c) Expand the following terms:- (i) CDMA (ii) WLL
XII-CS 2014-15
Page 7 of 8
2
1
3
1
1
1
1
1
Reso
urce
Com
poun
Fina
nce
Com
pou
Train
ing
Com
poun
Centre to Centre Distance between the Compounds
Computers in Each Compound
No. of
(e1) Suggest an ideal cable layout for connecting these compounds and also topology
(e2) Suggest the most suitable place (i.e. compound) to install the server with suitable reason.
(e3) Which device should be procured by the company for connecting several computers in each
1
1
1
compound.
(e4) The NGO is planning to connect its International office situated in Mumbai.Which out of the
(f)
(g)
following wired communication link, you will suggest for very high speed connectivity?
a) Telephone Analog Line
b) Optical Fibre
c) Ethernet Cable
What is the difference between Worm and Virus?
Write any two important characteristics of Cloud Computing.
***
XII-CS 2014-15
Page 8 of 8
1
1