Views: 730
In This E-Book You Get All Type Of CBSE Sample Paper 2010, Design of Question Paper for 2009-2010. Sample Papers of Computer Science. All Solved Question Papers of Computer Science.
Q.1 What is the difference between Global Variable and Local Variable? Also, give a suitable C++ code to illustrate both.
Q.2 Object Oriented Programming in C++
a) Introduction to OOP using C++
b) Constructor & Destructor
c) Inheritance
Q.3 Data Structure & Pointers
a) Address Calculation
b) Static Allocation of Objects
c) Dynamic Allocation of Objects
d) Infix & Postfix Expressions
Q.4 Data File Handling in C++
a) Fundamentals of File Handling
b) Text File
c) Binary Files
Q.5 Databases and SQL
a) Database Concepts
b) Structured Query Language
Q.6 Boolean Algebra
a) Introduction to Boolean Algebra & Laws
b) SOP & POS
c) Karnaugh Map
d) Basic Logic Gates
Q. 7 Communication & Open Source Concepts
a) Introduction to Networking
b) Media,Dvices,Topologies & Protocols
c) Security
d) Webservers
e) Open Source Terminologies
Q.8 Which C++ header file(s) will be essentially required to be included to run /
execute the following C++ code:
void main()
}
char Msg[ ]="Sunset Gardens";
for (int I=5;I
puts(Msg);
{
Q.9 Rewrite the following program after removing the syntactical errors (if any).
Underline each correction.
#include [iostream.h]
class MEMBER
}
int Mno;float Fees;
PUBLIC:
void Register(){cin>>Mno>>Fees;}
void Display{cout<
;{
void main()
}
MEMBER M;
Register();
M.Display();
{
Q.10 What do you understand by Data Encapsulation and Data Hiding? Also, give a suitable C++ code to illustrate both
Q.11 In Object Oriented Programming, what is Function 4 referred as and when does it get invoked/called?
Q.12 In Object Oriented Programming, which concept is illustrated by Function 1 and Function 3 together? Write an example illustrating the calls for these functions.
Q.13 Write a function in C++ to merge the contents of two sorted arrays A & B into third array C. Assuming array A and B are sorted in ascending order and the resultant array C is also required to be in ascending order.
Q.14 Write a function in C++ to count the number of lines present in a text file "STORY.TXT".
Q.15 What do you mean by Spam Mails? How can you protect your mailbox from Spams?
Q.16 What is the difference between Global Variable and Local Variable? Also, give a suitable C++ code to illustrate both.
Q.17 Which C++ header file(s) will be essentially required to be included to run /
execute the following C++ code: 1
void main()
}
char Msg[ ]="Sunset Gardens";
for (int I=5;I
puts(Msg);
{
Q.18 Define a class TEST in C++ with following description: 4
Private Members
• TestCode of type integer
• Description of type string
• NoCandidate of type integer
• CenterReqd (number of centers required) of type integer
• A member function CALCNTR() to calculate and return the number of centers as (NoCandidates/100+1)
Public Members
• A function SCHEDULE() to allow user to enter values for TestCode,
• Description, NoCandidate & call function CALCNTR() to calculate the number of Centres
• A function DISPTEST() to allow user to view the content of all the data members
Q.19 Write a function in C++ to perform Insert operation in a dynamically allocated Queue containing names of students.
Q.20 What is the difference between Actual Parameter and Formal Parameters? Also, give a suitable C++ code to illustrate both
Tags:
CBSE Sample Papers