CUET Humanities Exam  >  CUET Humanities Tests  >  Computer Science: CUET Mock Test - 3 - CUET Humanities MCQ

Computer Science: CUET Mock Test - 3 - CUET Humanities MCQ


Test Description

30 Questions MCQ Test - Computer Science: CUET Mock Test - 3

Computer Science: CUET Mock Test - 3 for CUET Humanities 2024 is part of CUET Humanities preparation. The Computer Science: CUET Mock Test - 3 questions and answers have been prepared according to the CUET Humanities exam syllabus.The Computer Science: CUET Mock Test - 3 MCQs are made for CUET Humanities 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Computer Science: CUET Mock Test - 3 below.
Solutions of Computer Science: CUET Mock Test - 3 questions in English are available as part of our course for CUET Humanities & Computer Science: CUET Mock Test - 3 solutions in Hindi for CUET Humanities course. Download more important topics, notes, lectures and mock test series for CUET Humanities Exam by signing up for free. Attempt Computer Science: CUET Mock Test - 3 | 40 questions in 45 minutes | Mock test for CUET Humanities preparation | Free important questions MCQ to study for CUET Humanities Exam | Download free PDF with solutions
Computer Science: CUET Mock Test - 3 - Question 1

Which character is used in Python to make a single line comment?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 1

In Python, we use the hash symbol # to write a single-line comment.

Computer Science: CUET Mock Test - 3 - Question 2

Which of the following is the correct extension of the Python file?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 2

" .py " is the correct extension of the Python file.
.PY file is a program or script written in Python, which is an interpreted object-oriented programming language. It may be written in a text editor and may be edited, but it must be run using a Python interpreter. .PY files are often used to program web servers and other administrative computer systems.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Computer Science: CUET Mock Test - 3 - Question 3

Two statements are given below, one is Assertion (A) and the other is Reason (R). Read the statements carefully and choose the correct answer.
Assertion (A): Linear search is an efficient searching algorithm for large arrays.
Reason (R): Linear search has a time complexity of O(n).

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 3

Linear search has a time complexity of O(n), which means that it takes linear time to search an array. This makes it inefficient for large arrays, as the time taken to search the array grows linearly with the size of the array. Therefore, whether linear search is a simple and easy-to-implement algorithm, it is not efficient for large arrays.

Computer Science: CUET Mock Test - 3 - Question 4

Which language is used to access and manipulate databases?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 4

SQL stands for Structured Query Language. It lets you access and manipulate databases and became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987.

Computer Science: CUET Mock Test - 3 - Question 5

Directions: Match the contents under List I with those under List II.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 5
  • Primary key is a key that uniquely identifies each record in a table.
  • Foreign key is used to establish a relationship between two tables.
  • Candidate key can be used as a primary key and is unique for each record.
  • Composite key is composed of two or more columns and is used to uniquely identify each record in a table.
Computer Science: CUET Mock Test - 3 - Question 6

A node that forwards data packets from one network to their destination in another network is called:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 6

A router is a networking device that forwards data packets between computer networks. Routers perform the traffic directing functions on the Internet. Data sent through the internet, such as a web page or email, is in the form of data packets.

Computer Science: CUET Mock Test - 3 - Question 7

Which of the following options can be used to read the first line of a text file Myfile.txt?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 7

The 'readline()' function can be used to read the first line of a text file Myfile. txt. Hence, the correct answer is option 3.

Computer Science: CUET Mock Test - 3 - Question 8

If we want to add more contents in an existing file, file must be opened in ____ mode.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 8

The "a" mode allows you to open a file to append some content to it. If we want to add a new line to it, we can open it using the "a" mode (append) and then, call the write() method, passing the content that we want to append as argument.

Computer Science: CUET Mock Test - 3 - Question 9

Two statements are given below:
Statement I: ALTER TABLE statement is used to add a new column to an existing table in SQL.
Statement II: INSERT Row statement is used to insert the Row to an existing table in SQL.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 9

ALTER TABLE statement is used to add a new column to an existing table in SQL. INSERT ROW statement is not used to insert the Row to an existing table in SQL. INSERT INTO is used to insert the Row.

Computer Science: CUET Mock Test - 3 - Question 10

It is possible to create a loop using goto statement in python?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 10

No, Python does not support labels and goto. It's a (highly) structured programming language.

Computer Science: CUET Mock Test - 3 - Question 11

What will be the output of following Python code?
str1="Information"
print(str1[2:8])

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 11

Concept of slicing is used in this question. In string slicing, the output is the substring starting from the first given index position i.e. 2 to one less than the second given index position i.e. (8 - 1 = 7) of the given string str1. Hence, the output will be "format".

Computer Science: CUET Mock Test - 3 - Question 12

The process of identifying a slot for the second and further items in the hash table in the event of collision, is called _______.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 12

The process of identifying a slot for the second and further items in the hash table in the event of collision, is called collision resolution.

Computer Science: CUET Mock Test - 3 - Question 13

Which of the following is/are the advantage(s) of a database management system?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 13

Yes, All (1), (2) and (3) are the advantages of a database management system.

Computer Science: CUET Mock Test - 3 - Question 14

Directions: Match the contents under List I with those under List II.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 14

The binary heap data structure takes O(n) time to build, and the repeated extraction and placement operations take O(log n) time. Hence, the total worst-case time complexity of Heap Sort is O(n log n).

  • Selection Sort: O(n2) - This occurs when the array is in reverse sorted order or any other order, as the algorithm has to traverse the entire array to find the minimum element repeatedly.
  • Radix Sort: O(nk), where n is the size of the array and k is the number of digits in the largest number.
  • Count Sort: O(n+k), where n is the number of elements to be sorted, and k is the range of input values.
Computer Science: CUET Mock Test - 3 - Question 15

What is the output of the following if statement
a, b = 12, 5
if a + b:
print('True')
else:
print('False')

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 15

In Python, any non-zero value is considered True. So, it will evaluate to true.

Computer Science: CUET Mock Test - 3 - Question 16

A DNS __________ server gets its data from another DNS server.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 16

A DNS secondary server gets its data from another DNS server. A primary/secondary DNS server setup is a master/slave setup where the primary DNS server is the master and the secondary DNS server is the slave.

Computer Science: CUET Mock Test - 3 - Question 17

Binary search takes a sorted/ordered list and divides it in the _______.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 17

Binary search takes a sorted/ordered list and divides it in the middle.

Computer Science: CUET Mock Test - 3 - Question 18

Which of the following is an invalid variable?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 18

Variable names should not start with a number.

Computer Science: CUET Mock Test - 3 - Question 19

Consider a declaration L = (1, 'Python', '3.14'). Which of the following represents the data type of L?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 19

Tuple is the data type of L.

  • A list contains python objects and objects inside are separated by comma (,) and enclosed within square brackets.
  • A tuple is almost like a List and contains python objects and objects inside are separated by comma (,) and enclosed within parentheses.
  • Dictionary in Python is used to store data values in an unordered collection. For storing data in a dictionary, keys are used. It's like a key: value pair in which data is held by unique keys.
Computer Science: CUET Mock Test - 3 - Question 20

What is the output of the following program?
L1=[ ]
L1.append([1,[2,3],4])
L1.extend([7,8,9])
print(L1[0][1][1]+L1[2])

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 20

In the print(), indexing is used. L1[0] denotes [1, [2, 3], 4]. L1[0][1] denotes [2, 3].
L1[0][1][1] = 3 and L1[2] = 8
Thus, the two integers are added: 3 + 8 = 11 and the output comes out to be 11.

Computer Science: CUET Mock Test - 3 - Question 21

Two statements are given below:
Statement I: Normalization is the process of organizing data in a database into tables to reduce redundancy.
Statement II: Normalization is the process of organizing data in a database into tables to reduce dependancy.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 21

Normalization is a process that is used to eliminate redundant data and to ensure that data is stored in a way that minimizes data dependency. It involves dividing a larger table into smaller tables and defining relationships between them to reduce data redundancy and improve data integrity.

Computer Science: CUET Mock Test - 3 - Question 22

A tuple is a:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 22

A single row of a table, which contains a single record for that relation is called a tuple.

Computer Science: CUET Mock Test - 3 - Question 23

A repeater is a device which operates only in the:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 23

A repeater is a device that operates only in the physical layer. Signals that carry information within a network can travel a fixed distance before attenuation endangers the integrity of the data.

Computer Science: CUET Mock Test - 3 - Question 24

Which of the following string functions in 'C' converts lowercase input string into uppercase?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 24

The strupr( ) function is used to convert a given string to uppercase.

Computer Science: CUET Mock Test - 3 - Question 25

What is the fundamental unit of data transport on computer networks?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 25

A network packet is a formatted unit of data carried by a packet-switched network. Computer communications links that do not support packets, such as traditional packet switching, simply transmit data as a bit stream. When data is formatted into packets, the bandwidth of the communication medium can be better shared among users than with circuit switching. A packet consists of control information and user data, which is also known as the payload. Control information provides data for delivering the payload, for example: source and destination network addresses, error detection codes, and sequencing information. Typically, control information is found in packet headers and trailers.

Computer Science: CUET Mock Test - 3 - Question 26

172.16.122.204 IP address belongs to which IP addresses class?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 26

Option 1 is the correct answer. The address range of this class is from 128.0.0.0 to 191.255.255.255.

Computer Science: CUET Mock Test - 3 - Question 27

Two statements are given below:
Statement I: Hashing technique is very fast and efficient for large collections, but requires additional memory to store the hash table.
Statement II: Binary search technique is suitable for small collections but can be slow for larger collections.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 27

Statement I is correct. Hashing technique is very fast and efficient for large collections, but requires additional memory to store the hash table. Statement II is a fact for Linear Search not for a Binary Search. Binary Search technique reduces the search space by half at each step, making it faster than linear search for larger collections.

Computer Science: CUET Mock Test - 3 - Question 28

The CSV files can be accessed:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 28

Opening a CSV file is simpler than you may think. In almost any text editor or spreadsheet program, just choose File > Open and select the CSV file.

Computer Science: CUET Mock Test - 3 - Question 29

Directions: Match the contents under List I with those under List II.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 29
  • Join command combines rows from two or more tables.
  • Group By command groups the result set by specified columns.
  • Order By command sorts the result set based on a specified column.
  • Where clause filters the result set based on specified conditions.
Computer Science: CUET Mock Test - 3 - Question 30

What is sorting?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 30

Sorting is the process of arranging data into meaningful order so that you can analyze it more effectively.

View more questions
Information about Computer Science: CUET Mock Test - 3 Page
In this test you can find the Exam questions for Computer Science: CUET Mock Test - 3 solved & explained in the simplest way possible. Besides giving Questions and answers for Computer Science: CUET Mock Test - 3, EduRev gives you an ample number of Online tests for practice

Top Courses for CUET Humanities

Download as PDF

Top Courses for CUET Humanities