Documente Academic
Documente Profesional
Documente Cultură
SCHOOL
CLASS:XII REVISION EXAMINATION-II TIME: 3 HRS
DATE:20 /11/17 COMPUTER SCIENCE 083/2 MARKS:70
ROLL.NO:_____
1
for( int j=0; str[j]; j++, ptr++)
cout<<’\n’<<j[str]<<”$$”<<ptr; }
f) Choose the output(s) which are not possible for the following
code segment and also find the maximum and minimum values
that are assigned to the variable losnumeros: (2)
#include<iostream.h>
#include<stdlib.h>
#define ESPANOL(x,y) x * y
enum numeros
{ UNO=9,
DOS,
TRES,
CUATRO=-11,
CINCO } ;
void main()
{randomize();
numeros ob1 = TRES;
int losnumeros = random((ESPANOL( DOS+2, CINCO +15))) ;
losnumeros += CUATRO;
for (int i = losnumeros; 0<i; i +=3)
cout<<losnumeros++ + i<<’:’; } }
OUTPUTS:
i) -14:-10:-6:
ii) -22:-18:-14:-10:
iii) -9:-6:-3:
iv)-11:-8:-5:
2a) Explain how Abstract class and Concrete class are inter-
related with an example and also give any one difference
between those two classes. (2)
b) Observe the following C++ code and answer the questions (i)
and (ii). Assume all necessary header files are included: (2)
class RE2
{ int marks;
char *subject;
2
public:
RE2(int s,char *t); //function 1
RE2(RE2 &R); //function 2
~RE2(); //function 3
};
void main()
{ RE2 ob1[20]; //s1
}
4a) Write a function in C++ to find and display the total number
of players from the text file baseball.txt
Data stored on that file in the following form: (2)
LADodgers 25
SFOGiants 23
OaklandA’s 21
………………… ….
………………… ….
5
fin.close();
return count; }
5a) Differentiate between DDL and DML statements with
examples (2)
b) Write SQL queries for (i) to (iv) and find outputs for SQL
queries (v) to (viii), which are based on the tables. (6)
SPORTS
Scode Sportsname Participants PrizeMoney Scheduledate
101 Carrom 2 5000 2012-01-23
102 Badminton 2 12000 2011-12-12
Table
103 4 8000 2012-02-14
Tennis
105 Chess 2 9000 2012-01-01
Lawn
108 4 25000 2012-03-19
Tennis
COACH
Ccode Name Scode
1 Ravi 101
2 Mohan 108
3 Sameer 101
4 Shikhar 103
i)To display scode, the number of coaches for each scode from
the table coach and display scode in descending order.
ii)To display details of those sports and coachname which are
having PrizeMoney more than 9000 and coachname ends with ‘n’.
iii)To display the contents of the sports table with their
coachname whose schedule date is in the year 2019.
iv)Increase the Participants by 6 for the sports carom, chess and
badminton
v)SELECT COUNT(DISTINCT Participants) FROM SPORTS;
vi)SELECT MAX(Scheduledate), MIN(Scheduledate) FROM
SPORTS;
vii) SELECT Sportsname, Name FROM SPORTS, COACH;
viii)SELECT SUM(PrizeMoney) FROM SPORTS WHERE
Participants < 4;
6
d) Reduce the following Boolean Expression using K-Map: (3)
g(u,v,w,x) = ϖ(0,1,2,6,8,10,11,12)
7a)Write two advantages of using an optical fibre cable over an
ethernet cable to connect two service stations which are
200m away from each other (1)
WEB
DESIGN
HR HARDWARE
7
HR Block to Web Design Block 120 metres
HR Block to Hardware Block 85 metres
HYDERABAD Head Office to PUNE Campus 504 Km
Number of Computers installed at various blocks are as follows :
HR Block 10
Programming Block 100
Web Design Block 60
Hardware 40
(i) Suggest the most appropriate block/location to house the
SERVER in the PUNE Campus (out of the 4 blocks) to get
the best and effective connectivity. Justify your answer.
(ii) Suggest a device/software and where it is to be
installed in PUNE Campus to take care of data security
(iii) Suggest the best wired medium and draw the cable layout
(Block to Block) to efficiently connect various Blocks within
the PUNE campus.
(iv) Suggest a device and the protocol that shall be needed to
provide Video Conferencing solution between PUNE
Campus and Hyderabad Head Office.