Csuqp
Csuqp
Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4 case-based subparts.
An examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two question have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions have internal
options.
c. Section-III is very long answer questions of 5 marks each in which one question has internal
option.
6. All programming questions are to be answered using Python Language only
PART-A
Section-I
Select the most appropriate option out of the options given for each question. Attempt any 15 questions
from question no. 1 to 21.
Q. Optio Questions Description Marks
No. n No. Allotted
1. Identify the invalid keyword in Python from the following: 1
(a) True (b) None (c) Import (d) return
2. Write the output of the following python expression: 1
3. Write the importance of passing file mode while declaring a file object in 1
data file handling.
4. Find the operator which cannot be used with a string in Python from the 1
following:
(a) + (b) in (c) * (d) //
5. Write the output of the following python statements: 1
PART-A
Section-II
Both the case study-based questions are compulsory. Attempt any 4 out of the 5 subparts from each
question. Each question carries 1 mark.
Page No. 2
22. A CD/DVD Shop named “NEW DIGITAL SHOP” stores various CDs & DVDs
of songs/albums/movies and use SQL to maintain its records. As a Database
Administrator, you have decided the following:
Table: LIBRARY
CDNO NAME QTY PRICE
10001 Indian Patriotic 20 150
10004 Hanuman Chalisa 15 80
10005 Instrumental of Kishore 25 95
10003 Songs of Diwali 18 125
10006 Devotional Krishna Songs 14 75
10002 Best Birthday Songs 17 NULL
AddNewRec(“INDIA”,”NEW DELHI”)
AddNewRec(“CHINA”,”BEIJING”)
ShowRec() # Statement-5
Short answer questions of 2 marks each in which two question have internal options.
24. Write the output of the following python statements: 2
(a) print(2 + 3*4//2 - 4)
(b) print(10%3 – 10//3)
25. Differentiate between SMTP & POP3. 2
OR
List any two security measures to ensure network security.
26. Rohit has purchased a new Smart TV and wants to cast a video from his mobile to 2
his new Smart TV. Identify the type of network he is using and explain it.
27. What is the meaning of return value of a function? Give an example to illustrate 2
its meaning.
OR
Differentiate between a positional and default arguments with the help of an
example.
28. Rewrite the following code in Python after removing all syntax error(s). Underline 2
each correction done in the code.
Y=integer(input(“Enter 1 or 10”))
if Y==10
for Y in range(1,11):
print(Y)
else:
for m in range(5,0,-1):
print(thank you)
29. What possible outputs(s) are expected to be displayed on screen at the time of 2
execution of the program from the following code? Also specify the maximum
values that can be assigned to each of the variables BEG and END.
Page No. 4
(a)30@
(b)10@20@30@40@50@
(c)20@30
(d)40@30@
30. What do you mean by domain of an attribute in DBMS? Explain with an example. 2
PART-B
Section-II
Short answer questions of 3 marks each in which two question have internal options.
34. Write a function in python named SwapHalfList(Array), which accepts a list Array 3
of numbers and swaps the elements of 1st Half of the list with the 2nd Half of the
list ONLY if the sum of 1st Half is greater than 2nd Half of the list.
Page No. 5
Sample Input Data of the list
Array= [ 100, 200, 300, 40, 50, 60],
Output Arr = [40, 50, 60, 100, 200, 300]
35. Write a method/function COUNTLINES_ET() in python to read lines from a 3
text file REPORT.TXT, and COUNT those lines which are starting either with
‘E’ and starting with ‘T’ respectively. And display the Total count separately.
36. Write the Outputs of the SQL queries (i) to (iii) based on the given below tables:
Page No. 6
(i) SELECT DISTINCT(CITY) FROM TRAINER WHERE SALARY>80000; 1
OR
Short answer questions of 5 marks each in which ONE question have internal options.
38. “VidyaDaan” an NGO is planning to setup its new campus at Nagpur for its 5
web-based activities. The campus has four(04) UNITS as shown below:
Page No. 7
Distances between above UNITs are given here s under:
UNIT-1 UNIT-2 DISTANCE(In mtrs.)
ADMIN TRAINING 65
ADMIN RESOURCE 120
ADMIN FINANCE 100
FINANCE TRAINING 60
FINANCE RESOURCE 40
TRAINING RESOURCE 50
(ii) Suggest the most suitable place i.e. UNIT to install the server for the above
NGO.
(iii) Which network device is used to connect the computers in all UNITs?
(v) NGO is planning to connect its Regional Office at Kota, Rajasthan. Which out of
the following wired communication, will you suggest for a very high-speed
connectivity?
(a) Twisted Pair cable (b) Ethernet cable (c) Optical Fiber
39. Write SQL commands for the following queries (i) to (v) based on the relations 5
TRAINER & COURSE given below:
Page No. 8
(i) Display all details of Trainers who are living in city CHENNAI.
(ii) Display the Trainer Name, City & Salary in descending order of their Hiredate.
(iv) Display the Course details which have Fees more than 12000 and name ends with
‘A’.
(v) Display the Trainer Name & Course Name from both tables where Course Fees
is less than 10000.
40. A binary file named “EMP.dat” has some records of the structure 5
[EmpNo, EName, Post, Salary]
(a) Write a user-defined function named NewEmp() to input the details of a
new employee from the user and store it in EMP.dat.
(b) Write a user-defined function named SumSalary(Post) that will accept an
argument the post of employees & read the contents of EMP.dat and
calculate the SUM of salary of all employees of that Post.
OR
**********
Page No. 9