Page 1 of 12
Maximum Marks : 200 Time : 45 Minutes
General Instructions :
(i) Section A will have 15 questions covering both i.e. Computer Science/Information Practices which will be
compulsory for all candidates.
(ii) Section B1 will have 35 question from Computer Science out of which 25 questions need to be attempted.
(iii) Section B2 will have 35 questions purely from Information Practices out of which 25 question will be attempted.
(iv) Correct answer or the most appropriate answer : Five marks (+5).
(v) Any incorrect option marked will be given minus one mark (– 1).
(vi) Unanswered/Marked for Review will be given no mark (0).
(vii) If more than one option is found to be correct then Five marks (+5) will be awarded to only those who have
marked any of the correct options.
(viii) If all options are found to be correct then Five marks (+5) will be awarded to all those who have attempted the
question.
(ix) If none of the options is found correct or a Question is found to be wrong or a Question is dropped then all
candidates who have appeared will be given five marks (+5).
(x) Calculator / any electronic gadgets are not permitted
Section - A [45 Minutes]
(Computer Science/Informatics Practices)
1. Which of the following error is also known as
Syntax Error?
(1) Code Error (2) Parsing Error
(3) Logical Error (4) Programming Error
2. ___________ function is used to open a file in
python.
(1) new() (2) open()
(3) start() (4) All of the above
3. __________ stands for EOF.
(1) End Or File (2) End Of File
(3) End Off File (4) End On File
4. A collection of ____________ is known as relational
database.
(1) Tables (2) Attributes
(3) Records (4) Fields
5. A ______ in RDBMS is also known as record of a
table.
(1) Key (2) Tuple
(3) Attribute (4) Degree
6. Relation is defined as a collection of data in the form
of____________.
(1) rows and columns (2) rows
(3) columns (4) none of the above
7. Which of the following command is used to create a
new table in SQL?
(1) BUILD TABLE (2) CREATE TABLE
(3) START TABLE (4) NEW TABLE
8. What does the following statement in SQL do?
DROP TABLE Customer;
(1) Deletes Customer Table
(2) Delete some rows of Customer Table
(3) Create Customer Table
(4) None of the above
9. ___________ is used to get a specified day of the
month for a given date.
(1) GETDATE (2) DAY
(3) DATE (4) CURRENTDATE
10. Which statement will display the records for all the
students who have scored more than 75 marks?
(1) SELECT * FROM student WHERE MARKS
GREATER THEN 75;
(2) SELECT * FROM student WHERE MARKS =
75;
(3) SELECT * FROM student WHERE MARKS >
75;
(4) SELECT * FROM student MARKS > 75;
1 SAMPLE
Question Paper
Page 2 of 12
2 OSWAAL CUET (UG ) Sample Question Papers, COMPUTER SCIENCE/IP
11. The SQL built-in function _________ obtains the
largest value in a numeric column.
(1) MIN (2) MAX
(3) MAXIMUM (4) HIGH
12. __________________ stands for MAN.
(1) Metropolitan Area Network
(2) Main Area Network
(3) Metropolitan Access Network
(4) Metro Access Network
13. Which of the following device can be operate in
place of hub?
(1) Switch (2) Bridge
(3) Router (4) Gateway
14. Which one of the following is not a network
topology?
(1) Mesh (2) Ring
(3) Tree (4) Peer-to-Peer
15. WWW stands for ________________________
(1) World Wide Web (2) Web World Wide
(3) Wide World Web (4) Wide Web Word
Section - B1 (Computer Science) [45 Minutes]
1. To open a file c:\scores.txt for reading, we use
_____________
(1) infile = open(“c:\scores.txt”, “r”)
(2) infile = open(“c:\\scores.txt”, “r”)
(3) infile = open(file = “c:\scores.txt”, “r”)
(4) infile = open(file = “c:\\scores.txt”, “r”)
2. The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
(1) AB+ CD*E – FG /**
(2) AB + CD* E – F **G /
(3) AB + CD* E – *F *G /
(4) AB + CDE * – * F *G /
3. Which method is used to get the row-id of the last
modified row?
(1) cursor.getrowid() (2) cursor.endrowid()
(3) cursor.lastrowid() (4) cursor.exitrowid()
4. Which of the following are used in data definition?
(1) DML (2) DDL
(3) TCL (4) None of these
5. Assertion (A): The postfix form of (A + B) * C is AB
+ C *.
Reason (R): Postfix notation refers to when operator
is placed after its operands.
(1) Both A and R are true and R is the correct
explanation for A.
(2) Both A and R are true and R is not correct
explanation for A.
(3) A is true but R is false.
(4) A is false but R is true.
6. Which of the following is not a comparison
query?
(1) IN (2) BETWEEN
(3) LIKE (4) AND
7. __________sort is the simplest sorting algorithm
that works by repeatedly swapping the adjacent
elements in case they are unordered in n-1 passes.
(1) Bubble (2) Insertion
(3) Complexity (4) Selection
8. ___________________ is a way to represent data in
memory.
(1) Data Handling (2) Data Structure
(3) Data Dumping (4) Data Collection
9. How many except statements can a try-except block
have?
(1) zero (2) one
(3) more than one (4) more than zero
10. __________ explain how an algorithm will perform
when the input grows larger.
(1) Sorting (2) Merging
(3) Complexity (4) Searching
11. When will the else part of try-except-else be
executed?
(1) always
(2) when an exception occurs
(3) when no exception occurs
(4) when an exception occurs in to except block
12. Which statement will read 5 characters from a
file(file object ‘f’)?
(1) f.read() (2) f.read(5)
(3) f.reads(5) (4) None of the above
13. When a stack is full and no element can be added, it
is called an ________.
(1) Overflow (2) Extraflow
(3) Out of range (4) Underflow
14. An attribute whose value is derived from the
primary key of some other table.
(1) Primary key (2) Foreign key
(3) Alternate key (4) None of these
15. Is the following Python code valid?
Page 3 of 12
Sample Question Papers 3
try:
# Do something
except:
# Do something
finally:
# Do something
(1) no, there is no such thing as finally
(2) no, finally cannot be used with except
(3) no, finally must come before except
(4) yes
16. Which function open file in python?
(1) open( ) (2) new( )
(3) Open( ) (4) None of the above
17. A Computer Network:
(1) Is a collection of hardware components and
computers?
(2) Is interconnected by communication channels
(3) Allows sharing of resources and information
(4) All of the above
18. In ____________ the smallest element is selected
from the unsorted array and swapped with the
leftmost element, and that element becomes a part
of the sorted array.
(1) Bubble sort (2) Insertion sort
(3) Complexity sort (4) Selection sort
19. Which function is used with ORDER BY clause to
custom sort order.
(1) ASC (2) DESC
(3) FIELD (4) None of these
20. Is the following Python code valid?
try:
# Do something
except:
# Do something
else:
# Do something
(1) no, there is no such thing as else
(2) no, else cannot be used with except
(3) no, else must come before except
(4) yes
21. Data structure can be of two type’s
namely___________
(1) Simple and Compound
(2) Simple and Nested
(3) Sequential and random
(4) All of the above
22. What is the use of Bridge in the Network?
(1) To connect LANs
(2) To separate LANs
(3) To control network speed
(4) All of the above
23. Can one block of except statements handle multiple
exception?
(1) yes, like except TypeError, SyntaxError [,...]
(2) yes, like except [TypeError, SyntaxError]
(3) no
(4) none of the mentioned
24. Which mode create new file if the file does not exist?
(1) write mode (2) append mode
(3) Both of the above (4) None of the above
25. When is the finally block executed?
(1) when there is no exception
(2) when there is an exception
(3) only if some condition that has been specified
is satisfied
(4) always
26. Which statement will return one line from a file (file
object is ‘f’)?
(1) f.readline( ) (2) f.readlines( )
(3) f.read( ) (4) f.line( )
27. Which of the following join selects all rows from
both the tables as long as the condition satisfies?
(1) Inner Join (2) Left Join
(3) Right Join (4) Natural Join
28. Compound Data structure can be ______ & _______
(1) Sequential and random
(2) Simple & Nested
(3) Linear & Non Linear
(4) Simple and Linear
29. __________ search takes a sorted/ordered list and
divides it in the middle.
(1) Binary (2) Hash
(3) Linear (4) Both (1) & (3)
30. Each table comprises of ______ and ________ .
(1) rows, columns (2) data, information
(3) database, table (4) None of these
Case Based
Here is the code for pop method in stack to print
a string in reverse order. But there is some missing
word. Answer the questions that follow to execute
the code successfully.
def popstack (stack)__ # Line 1
if isempty (stack) : # Line 2