Qwertyui
Qwertyui
1
i) Which one of the following is the default extension of a python file? 1
fuEufyf[kr esa ls dkSu lk ik;Fku Qkby dk fMQkWYV ,DlVsa'ku gS ?
a) .exe b) .p++ c) .py d) .p
iii) In which file, no delimiters are use for line and no translations occur ? 1
fdl Qkby esa ykbu ds fy, dks lhekadu dk mi;ksx ugha fd;k tkrk gS vkSj dksbZ
vuqoknu ugha gksrk gSS ?
a) Text file b) Binary file c) CSV file d) none of these
iv) Which of the following is not a correct Python statement to open a text file “Notes.
Txt” to write content into it? 1
fuEufyf[kr esa ls dkSu lk ikB~; Qkby [kksyus ds fy, ,d lgh ik;Fku dFku ugha gS
a) F=open(‘Notes.txt’,’w’)
b) F=open(‘Notes.txt’,’a’)
c) F=open(‘Notes.txt’,’A’)
c) F=open(‘Notes.txt’,’w+’)
v) A device that forward data packet from one network to another network in called ?
1
,d midj.k tks MsVk iSdsV dks ,d usVodZ ls nwljs usVodZ ij vxzsf"kr djrk gS] mls
D;k dgk tkrk gS?
a) Bridge b) Router c) Hub d) Gateway
vi) An attribute in a relation is a foreign key if it is the ------ key in any other relation? 1
,d relation esa ,d attribute ,d foreign key gksrh gS ;fn ;g fdlh vU; relation esa
-------- key gS?
a) Candidate b) Primary c) Super d) Alternate
viii) Consider the following SQL statement. What type of statement is this? 1
fuEu SQL dFku ij fopkj djsaA ;g fdl izdkj dk dFku gS?
CREATE TABLE employee (name VARCHAR, id INTEGER)
a) DML b) DDL c) DCL d) integrity constraint
Q 4) In python which rule is used to decide the order in which the name spaces are to
be searched for scope resolution? 1
python esa fdl fu;e dk mi;ksx ml dze dks r; djus ds fy, fd;k tkrk gS]
ftlesa name spaces dks LdksifjtkWY;w'ku ds fy, searched fd;k tkrk gS ?
Q 5) The data types whose values cannot be changed in place are called ------- type. 1
MsVk izdkj ftuds values ugha cnyk tk ldrk gS --------- izdkj dgk tkrk gS?
Q 6) Which data type stores year, month and day values? 1
dkSu lk data type o"kZ] eghus vkSj fnu dh values dks store djrk gS
Q 7) which command is used for removing a table and all its data from the database? 1
MsVkcsl ls rkfydk vkSj mlds lHkh MsVk dks gVkus ds fy, fdl dekaM dk mi;ksx
fd;k tkrk gS
Q 18) Convert the following infix expression to its equivalent postfix expression showing
stack contents for the conversion? 3
fuEufyf[kr infix expression dks blds led{k postfix expression esa duoVZ djsa?
(A+B* (C-D)/ E)
OR/ vFkok
4
Evaluate the following postfix expression using stack and show the contents of stack
after execution of each expression.
stack dk mi;ksx djds fuEufyf[kr postfix expression dk ewY;kadu djsa vkSj izR;sd
expression ds execution ds ckn stack dh contents fn[kk,aA
120, 45, 20, +, 25, 15, - , + , *
Q 19) Identify the following devices ? 3
fuEufyf[kr devices dh igpku djsa
(I) An intelligent device that connects several nodes to form a network and
redirects the received information only to intended nodes.
,d cqf}eku midj.k tks usVodZ cukus ds fy, dbZ uksMksa dks tksM+rk gS vkSj
izkIr tkudkjh dks dsoy bfPNr uksM ij iqufunsZf'kr djrk gSA
(II) A device that regenerates the received signal and retransmits it to its
destinations.
,d midj.k tks izkIr flXuy dks iqu% mRiUu djrk gS vkSj bls vius xarO;
rd iqu% izlkfjr djrk gSA
(III) Network device which connects dissimilar network (different protocols).
usVodZ fMokbl tks vleku usVodZ ¼fofHkUu izksVksdkWy½ dks tksM+rk gSA
Q 20) Write the names and syntax of any three commands of SQL? 3
SQL ds fdUgha rhu dekaM ds uke vkSj flaVSDl fyf[k,A
Q 23) Write a program to get student data (roll no. , name and marks ) from
user and write onto a binary file. The program should be able to get data
from the user and write on to the file as the use wants. 4
5
mi;ksxdrkZ ls student data (roll no. , name and marks ) izkIr djus ds fy,
,d izksxzke fy[ksa vkSj ,d ckbujh Qkby ij fy[ksaA izksxzke mi;ksxdrkZ ls MsVk
izkIr djus vkSj Qkby ij fy[kus esa l{ke gksuk pkfg,
OR/ vFkok
Write a program to create a Stack for storing only odd numbers out of all
the numbers entered by the user .Display the content of the stack along
with the largest odd numbers in the Stack
mi;ksxrkZ }kjk ntZ dh xbZ lHkh la[;kvksa esa ls dsoy odd numbers dks store
djus ds fy, ,d LVSd cukus dk izksxzke fy[ksa tks LVSd esa lcls largest odd
numbers ds lkFk LVSd ds content iznf'kZr djsa
Q 24)
(l) What is network Topology briefly explained types of Topology ? 2
usVodZ VksiksykWth D;k gS ? la{ksi esa VksiksykWth ds izdkjksa ds ckjs esa le>kb,
(ll) What is computer virus ? Write the name of any two viruses ? 2
dEI;wVj ok;jl D;k gS ? fdUgha nks ok;jl ds uke fyf[k, ?
Q 25)
(l) Differentiate between CHAR and VARCHAR datatypes . 2
CHAR vkSj VARCHAR MsVk Vkbi ds chp varj crkb,A
(ll) Differentiate between COUNT() and COUNT(*) functions in SQL with
appropriate example. 2
mi;qDr mnkgj.k ds lkFk SQL esa COUNT() vkSj COUNT(*) QaD'ku ds chp
varj le>kb,
Q 26) Case study based question. 4
A departmental store MyStore is considering to maintain their inventory
using SQL to store the data . As a database administer ,Abhay has
decided that :
,d fMikVZesaVy LVksj MyStore MsVk LVksj djus ds fy, SQL dk mi;ksx djds
viuh bUosaVªh cuk, j[kus ij fopkj dj jgk gSA MsVkcsl administer ds :Ik esa]
vHk; us fu.kZ; fy;k gS fd %
Name of the database -mystore
Name of the table - STORE
The attributes of STORE are as follows:
ItemNO. : numeric ; Item Name : charater of size 20;
Scode : numeric ; Quantity : numeric
TABLE : STORE
6
Item No. Item Name Scode Quantity
2005 Sharpener Classic 23 60
2003 Ball Pen 0.25 22 50
2002 Get Pen Premimum 21 150
2006 Get Pen Classic 21 250
2001 Erasre Small 22 220
2004 Eraser Big 22 110
2009 Ball Pen 0.5 21 180
(lll) Insert the following data into the attributes Item NO. , Item Name and
Scode respectively in the given table STORE.
nh xbZ table STORE esa dze'k% attributes Item NO. , Item Name and Scode
esa fuEufyf[kr MsVk MkysaA
ItemNO.=2010 ,ItemName = “Note Book” and Scode=25
(IV) Abhay wants to remove the table STORE from the database MY Store .
Which command will he use from the following :
vHk; table STORE dks MsVkcsl MY Store ls gVkuk pkgrk gSA og fuEufyf[kr
esa ls fdl vkns'k dk iz;ksx djsxk%
(I) DELETE FROM store ; (II) DROP TABLE store ;
(III) DROP DATABASE mystore ; (IV) DELETE store FROM my store;
******************