We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
VELAMMAL NEWGEN GROUP OF SCHOOLS —
MODEL EXAMINATION-1 2022 - 2023
Computer Science
General instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4, Section B has 12 Very Short Answer type questions carrying 02 marks each.
5, Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has O1Long Answer type questions carrying 05 marks each.
7, Section E has 02 questions carrying 04 marks each.
8, All programming questions are to be answered using Python Language only.
Section-A
1. What does DML stand for?
(a) Different Mode Level (b) Data Model Language
(c) Data Mode Lane
(d) Data Manipulation Language
2. The term.
(a) Attribute
is used to refer to a record ina table.
(b) Tuple (c) Row {d) Instance
3. In SQL, which command is used to SELECT only one copy of each set of duplicable rows
(a) SELECT DISTINCT (b) SELECT UNIQUE
(c) SELECT DIFFERENT (d) All of the above
4, Which of the following sublanguages of SQL is used to query information from the data base
and to create tables into, alter tables from, and modify table structure in the database?
(a) DML (Data Manipulation Language) (b) DDL (Data Definition Language)
(c) Query (d) Relational Schema
5, By default, ORDER BY clause lists the results in order.
(2) Descending (b) Any (c) Same (d) Ascending
6. Consider the table with structure as:
‘employee (ID, name, dept_name, sal)
from the above table, which attribute will form the primary key?
(a)Name {bJdept_name (c)sal {d)1D
7. What SQL statement do we use to display the record of all students whose last name contains 5
letters ending with “A”?
(a) SELECT * FROM STUDENTS WHERE LNAME LIKE ‘__
{b) SELECT * FROM STUDENTS WHERE LNAME LIKE ‘
(c) SELECT * FROM STUDENTS WHERE LNAME LIKE ‘ ????A’
{d) SELECT * FROM STUDENTS WHERE LNAME LIKE ‘*A’
8, Which of the following is a DML command?
a) SELECT b) ALTER c) INSERT d) None
8. In SQL, write the query to display the list of databases stored in MySQL
10. Which of the following types of table constraints will prevent the entry of NULL Values?
a) Unique b) Distinct ¢) Default d) NOT NULL
11, SQL applies conditions on the groups through clause after groups have been formed
(2) Group by {b} with (c) Where (d) Having
112, Name the method which is used for displaying only one result set
{a) fetch many {b) fetch no {c) fetch all (d) fetch one
= Name the host name used for signing in the database.
a) localhost (b) local post {c) local cost
(d) none of the above
14, Which of the following group functions ignore NULL values?
(a) MAX {b) COUNT (c) SUM (d) All of the above
15. Rearrange the following terms in decreasing order of data transfer rates.
Gbps, Mbps, Tbps, Kbps, bps
16. Write the expanded form of HTTP.
27. Fill in the blank:
is a communication methodology designed to deliver both voice
and multimedia communications over Internet protocol.
{a) VoIP (b) SMTP (c) PPP (d)HTTP
18. In computer, converting a digital signal in to an analog signal is called
a) Modulation b) demodulation c)conversion _d) transformation
Section -B
19. Write two points of difference between Message Switching and Packet Switching.
OR
Write two points of difference between HTML and DHTML.
20. Explain the use of ‘Primary Key’ in a Relational Database Management System. Give
‘example to support your answer.
21, What is meant by degree and cardinality of a table?
22. Write any two differences between Single row functicns and Aggregate functions.
23. Write the difference between unique key and primary key.
24, Differentiate between WHERE and HAVING clause,
25. Differentiate between fetch one() and fetch many(} methods with suitable examples.
26. Expand the following terms:
i) GPRS ii) VoIP
27, What is difference between star topology and bus topology of network?
pemezBS which type of network (out of LAN, PAN and MAN) is formed, when you connect two
mobiles using Bluetooth to transfer a picture file?
29. Define the term firewall.
30. Write two advantages of using an optical fiber cable over an ethernet cable to connect
two service stations, which are 190 m away from each other.
Section -C
32. Consider the following tables FACULTY and COURSES and give outputs for SQL queries (i) to (iii)
1d
10s
06
Sistemi | 7 10
Compnie: Secwary S00
Compute: Nenwork S00)-9-2004;
. Ity where Hire_date >11-9-2004;
a pare Came from FACULTY natural join COURSES;
Fearne enane.Lnamme Fees from COURSES C, FACULTY F WHERE F.F_I
for (i) & (ili) based on a table COMPANY and CUSTOMER,
i) select
ii) select
iil) select Cname,
32. Write output
F_ID;
COMPANY a
NAME lee EU PRODUC TNAME
iz | TV
wt SONY re DELHI me
[ NOKIA | amar | MOBILE
333 ONIDA DELHI oRe
es SONY MUMBAI MOBILE
44 > a
S85 BLACKBERRY MADRAS | - MOBILE i
666 DELL ete LAPTOP
7 STOMER =
Fees [rac a eae tea
\e a a i i 20
101 | Rohan Sh. vow |
nae oO : | Deepak Kumar
sez | Beep Rm
or rae
i ()) SELECT COUNT(*) ,CITY FROM COMPANY GROUP BY CITY;
ii (ii) SELECT MIN(PRICE), MAX(PRICE) FROM CUSTOMER :
iii (ili) SELECT AVG (QTY) FROM CUSTOMER ;
33. A list contains following record of a customer:
{Customer_name, Phone_number, City)
Write the following user defined function:
‘status’:
(i) Push_element() - To Push an obj
in Goa to the stack
(ii) Pop_element() - To Po;
Empty” when there are n
For example:
Ifthe lists of customer details are:
U"Gurdas", “99999999999” "Go"
(lulee”, "8888888888","Mumbai”] (Murugan","777777;
("Ashmit", “1010101010","Goa"} pe
The stack should contain
("Ashmit”,"1010101010"]
"Gurdas”,"9999999999")
‘The output should be:
' to perform given operations on the stack named
ject containing name and Phone number of custo
p the objects from the stack and display them. Also,
10 elements in the stack.[*Ashmit","1010101010"
{"Gurdas”,“9999999999"]
stack Empty Te
Write a function in Python, Pushisitem) where , Sitem is a dictionary containing the details of
stationary items~ {Sname:price).
The function should push the names of those items in the stack who have price greater than 75
Also display the count of elements pushed into the stack
For example:
If the dictionary contains the following data
Ditem=("Pen":106,"Pencil":S9,"Notebook":80,"Eraser":25}
The stack should contain
Notebook
Pen
The output should be:
The count of elements in the stack is 2
34. Write a function in Python PUSH(Arr), where Arr is a list of numbers. From this list push all
numbers divisible by 5 into a stack implemented by using a list. Display the stack
one element, otherwise display appropriate error message.
35.
ifithas at least
Charu has to create a database named MYEARTH in MYSQL. She ry
the database to store the records of various cities across the
structure:
1ow needs to create a table named CITY in
globe. The table CITY has the following
2_—_| NIEGER,
__lwTEGEi
_POLLUTIONRATE INTEGER
POPULATION | INTEGER |
Help her to complete the task by suggesting appropriate SQL
Section -D
'ganisation. It is planning to set up its India campus at
Nepal campus has 4 main buildings- ADMIN,
36. Success Institution is an educational or;
‘Nepal with its head office at Mumbai, The
ENGINEERING, BUSINESS and MEDIA.
You as a network expert have to su
raised in (i) to (iv), keeping in mind
parameters,
iBgest the best network related solutions for their problems
the distance between the buildings and other given
Shortest distance between various buildings
ADMIN to ENGINEERING 50M
ADMIN to BUSINESS som
ADMIN to MEDIA 45M
4VELAMMAL NEWGEN GROUP OF
MODEL EXAMINATION-2 [2022 ~ 2023),
Computer Science e
x
| Time: 3 hrs
23.12.2022
General Instructions:
1. This question paper contains five sections, Section A to
2. All questions are compulsory.
3, Section A have 18 questions carrying 01 mark each
4 Section B has 07 Very Short Answer type questions carrying 02 marks each
5. Section ¢ has 05 Short Answer type questions carrying 03 marks each,
6 Section D has O3Long Answer type question carrying 05 marks each.
7. Section € has 02 questions carrying 04 marks each
8 All programming questions are to be answered using Python Language only
SECTION-A,
1. State True or False €
“variable declaration is explicit in Python.”
2. Which of the following is a valid identifier:
a Stype bAtype c. Same-type d, True
3. Given the following dictionaries
dict_exam=("Exam":"AISSCE", "Year"
Which statement will merge the contents of both dictionaries?
2. dict_exam.update(dict_result
b, dict_exam + dict_result
. dict_exam add(dict_result)
d. dict_exam.merge(dict_result)
aif 2 and c= 3 then which stétement wil give the output as : 2.0 from the following:
a, >>>a%eb%ctl b, >>>a%b%crLO —c.>>2a%b%e d. a%eb%c-1
5. Find the output of the following python program
for in range(1,15,4)
print(i, end:
a.. 1,20,3 b.23,4 ¢, 15,10,14 1 5,9,13
hat abandons the current iteration of the loop
pee b. stop infinite 6. Break
‘What will be the output of the following code.
>>> ‘abracadabra'.count(‘ab',4,8)
a2 0 cr 4.5
8, What will be the output of the following code?
print(“ComputerScience” split/“er",2))
|. ["Computer’, "Science" ili. {*Comput*,"Science”)
ii, "Comput”,"erScience"} v. ("Comput’,"er", Science”
9. if 11=[20,30} [2=[20,30} |3=("20"
return ‘False’:
/30'] |4=[20.0,30.0] then which of the following statements will not
a. spalizel2 b solasit c.paidai2 ef po> desl
ibe nade iikacd lad
10;What will be the output of the following code:
pald[1.2,3)
>>al2=[5,6)