CS ModelPaper 1
CS ModelPaper 1
III Answer any FOUR questions. Each question carries TWO marks: 4 x 2 =8
Data sharing: The data stored in the database can be shared among
multiple users or application programs.
27. Write the purpose of MAX() and MIN() group functions in SQL
PART-C
4 x 3 = 12
CPU. Cache memory is used to store most recently accessed data and
29. What is primitive data structure? Explain any two operations on primitive
data structure.
31. Write the purpose of seek directions in C++ data file handling
seekg():
Move the get pointer to a specified location from the beginning of a file.
seekp():
Move the put pointer to a specified location from the beginning of a file.
32. Differentiate between manual and electronic data processing.
Business-to-Business(B2B)
Business-to-Consumer(B2C)
Consumer-to-Consumer(C2C)
34. Write HTML code to create the following table.
PART-D
4 x 5 = 20
Advantages
a) The programs are modularized based on the principle of class and objects.
Dis Advantages
38. What is function overloading? Explain the need for function overloading.
When two or more functions have same name but differ in number
of arguments or data type of arguments is called function overloading.
The need for function overloading are:
i) A constructor must have the same name as that of the class name.
Bus Topology
Bus topology is also known as Linear Topology. In this topology each node
attaches directly to a common cable which acts as the backbone onto which
the various nodes are attached.
Star Topology
Tree topology is a combination of bus and star topology. The network looks
like an inverted tree with the central root branching and subbranching down
to the nodes.
Ring Topology
Mesh Topology
provide an alternative root in the case the host is either down or too
busy.
2 x 5 = 10
iii. Define member functions inside the class to input and output hour,
minute
and seconds.
#include<iostream.h>
#include<conio.h>
class Time
{
private:
int hour,minute,seconds;
public:
void getdata()
{
cout<<Enter the values for hour minute and seconds<<endl;
cin>>hour>>minute>>seconds;
}
void output()
{
cout<<"Hours: "<<hour<<endl;
cout<<"Minute: "<<minute<<endl;
cout<<"Seconds: "<<second;
}
};
void main()
{
Time X;
clrscr();
X.getdata();
X.output();
getch();
}
44. Write the SQL query for the following questions based on given
employee table
name varchar2(20),
age number(2),
salary number(5));
ii)desc employee;
*****