wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS / IP Marathon (SQL & CN)

Total questions: 100

Worksheet time: 51mins

Name
Class
Date
1.

What is a firewall in a Computer Network?

a)

The physical boundary of network

b)

An operating system of computer network

c)

A system designed to prevent unauthorized access

d)

A web browsing software

2.

DNS is the abbreviation of :-

a)

Dynamic Name System

b)

Dynamic Network System

c)

Domain Name System

d)

Domain Network Service

3.

________________ provides a connection-oriented reliable service for sending messages.

a)

TCP

b)

IP

c)

UDP

d)

All of the above

4.

The Internet is an example of

a)

Cell switched network

b)

circuit switched network

c)

packet switched network

d)

all of the above

5.

Which of the following is not a networking device?

a)

Gateways

b)

Linux

c)

Routers

d)

Firewalls

6.

Which of the following network devices broadcasts the incoming packets to all the hosts connected to the network?

a)

Switch

b)

Hub

c)

Bridge

d)

Router

7.

Which of these is not a communication channel?

a)

Satellite

b)

Microwave

c)

Radiowave

d)

Wi-Fi

8.

Which of these is not an example of unguided media?

a)

Optical fibre cable

b)

Radio wave

c)

Bluetooth

d)

Satellite

9.

___________ is the measuring unit of speed at which the data transfer takes place

a)

GHz/Second

b)

Hertz/Second

c)

Bytes/Second

d)

Bits/Second

10.

_________ is a dedicated line between the caller and the sender

a)

Packet switching

b)

Circuit switching

c)

Line switching

d)

Message switching

11.

................................ isresponsible for handling the address of the destination computerso that each packet is delivered to its proper destination

a)

IP

b)

TP

c)

TCP

d)

MAC

12.

The techniques of switching in which data is fragmented into smaller techniques is called ..............

a)

Circuit switching

b)

Message switching

c)

Packet switching

d)

Line switching

13.

Which network topology requires a central controller or hub?

a)

Mesh

b)

Ring

c)

Star

d)

Bus

14.

Data communication system within a building or campus is________

a)

WAN

b)

LAN

c)

MAN

d)

PAN

15.

The ____ translates internet domain and host names to IP address.

a)

routing information protocol

b)

domain name system

c)

network time protocol

d)

internet relay chat

16.

Transmission media are usually categorized as:

a)

Fixed or unfixed

b)

Guided or unguided

c)

Determinate or indeterminate

d)

Metallic or non-metallic

17.

Transmission media lie below

a)

Physical

b)

Application

c)

Data link

d)

Network

18.

Protocol for Network virtual terminal is___________

a)

FTP

b)

HTTP

c)

Telnet

d)

SMTP

19.

Ethernet card is also known as

a)

NIC

b)

Graphics Card

c)

Internet card

d)

Website card

20.

The device sued to strengthen weak signals

a)

Transformer

b)

Repeater

c)

HUB

d)

MODEM

21.

MAN stands for

a)

Metro Access Network

b)

Metropolitan Area Network

c)

Metropolitan Access Network

d)

Modulator Network

22.

Gokul has connected his PC to a bluetooth speaker so that he can attend to the classes / recorded videos easily. Which network technology is he using?

a)

LAN

b)

WAN

c)

PAN

d)

MAN

23.

The first ever form of a network was

a)

NSF Net

b)

WiFi

c)

Internet

d)

ARPANET

24.

What does VLAN stand for?

a)

Virtual Local Area Network

b)

Visual Local Area Network

c)

Virtual Land Access Network

d)

Video Local Area Network

25.

Which technology is used for creating a personal 'hotspot'

a)

bluetooth

b)

greentooth

c)

bluecoat

d)

greencoat

26.

Network of network makes the __________

a)

Intranet

b)

Internet

c)

Interspace

d)

NSFNET

27.

Network components are connected to the same cable in the _______ topology.

a)

A. Mesh

b)

B. Bus

c)

C. Star

d)

D. Ring

28.
Transfer files to and from another computer.
a)
HTTP
b)
FTP
c)
MIME type
d)
SMTP
29.

What does HTTPS stand for?

a)

Hypertext Transfer Protocol Secure

b)

Hyper Text Protocol Secure

c)

Hidden Text Transfer Protocol Station

d)

Hypertext Transfer Protocol Station

30.

Mr John is a small businessman that runs a Hardware, he has been experiencing problem with his small accounting department which he depends on to provide him with the sales reports. Mr John want to be able to shared information between his 7 computer station and have on central printing area, what type of network would you recommend to Mr John?

a)

LAN

b)

MAN

c)

WAN

d)

SAN

31.

The generally recognised term for the government protection afforded to intellectual property (written and electronic) is called ....................

a)

Computer security law

b)

aggregate information

c)

copyright law

d)

data security standards

32.

A software that can be freely accessed and modified is called .................

a)

Synchronous software

b)

Package Software

c)

Open source software

d)

Middleware

33.

The digital trail which gets created as a person's Internet usage using computers, smartphones, gaming consoles etc. is called ..........

a)

Internet data

b)

Internet trail

c)

Digital footprint

d)

e-footprint

34.

Stealing someone else's intellectual work and representing it as own, is called .............

a)

Intellectual steal

b)

Plagiarism

c)

Copyright

d)

Hacking

35.

What is Malware?

a)

Software that protects your computer from viruses

b)

Software that protects your computer from spyware and adware infections

c)

Software that updates your computers operating system

d)

Software that may harm your computer

36.

Special program which can detect and remove viruses from computer is called

a)

Virus

b)

Anti virus

c)

Group ware

d)

Custom

37.

Which SQL function is used to count the number of rows in a SQL query?

a)

COUNT()

b)

NUMBER()

c)

SUM()

d)

COUNT(*)

38.

If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default

a)

ASC

b)

DESC

c)

There is no default value

d)

None of the mentioned

39.

The command to remove rows from a table ‘CUSTOMER’ is __________________

a)

DROP FROM CUSTOMER

b)

UPDATE FROM CUSTOMER

c)

REMOVE FROM CUSTOMER

d)

DELETE FROM CUSTOMER WHERE

40.

Mismatched redundant copies of data is known as data ............

a)

dependance

b)

redundancy

c)

inconsistency

d)

isolation

41.

A data ................ is a set of rules that define valid data.

a)

constraint

b)

data dictionary

c)

query

d)

all of these

42.

______ command is used to see the structure of a table.

a)

Drop

b)

Insert

c)

Select

d)

Describe

43.

CREATE & DROP IS A ----------STATEMENT

a)

DDL

b)

DCL

c)

DML

d)

TCL

44.

Pool of values from where a column draws the value is called .............

a)

table

b)

attribute

c)

dataset

d)

domain

45.

The column which has unique values in all the rows but is not a primary key is called ............. key.

a)

candidate

b)

alternate

c)

composite

d)

foreign

46.

You are required to update the phone number for only the DesignerID "SMI01" in the "Designer" table. Which of these would successfully do that?

a)

UPDATE Designer SET PhoneNo = '01224123456'

b)

UPDATE Designer (PhoneNo) VALUES ('01224123456')

c)

UPDATE Designer SET PhoneNo = '01224123456' WHERE DesignerID = 'SMI01'

d)

UPDATE PhoneNo = '01224123456' FROM Designer WHERE DesignerID = 'SMI01'

47.

How would you DELETE records from the Items table with a "Chair" Type?

a)

DELETE 'Chair' FROM Items

b)

DELETE Type FROM Items WHERE Type = 'Chair'

c)

DELETE FROM Items WHERE Type = 'Chair'

d)

DELETE ITEMS WHERE Type = 'Chair'

48.

Write a query to display name and year of movies starting with B and display with latest year first

a)

SELECT name, year FROM movies WHERE name LIKE '%B' ORDER BY year DESC ;

b)

SELECT * FROM movies WHERE name LIKE 'B%' ORDER BY year DESC ;

c)

SELECT name, year FROM movies WHERE name LIKE 'B%' ORDER BY year ASC ;

d)

SELECT name, year FROM movies WHERE name LIKE 'B%' ORDER BY year DESC ;

49.

This symbol is an SQL wildcard that can substitute for one or more characters when searching for data in a database.

a)

$

b)

%

c)

=

d)

*

50.
What is the expected output from following SQL Query:
SELECT title
FROM videogames
WHERE title LIKE  '%2'
a)
It will only show video games which contains the character 2 somewhere in the title
b)
It will only show  videogames which begins with the character 2 in the title
c)
It will only show videogames which ends with the character 2 in the title
51.

Which of the following is also called an INNER JOIN?

a)

SELF JOIN

b)

EQUI JOIN

c)

NON-EQUI JOIN

d)

None of them

52.

Which of the following is true about the HAVING clause?

a)

Similar to the WHERE clause but is used for columns rather than groups.

b)

Similar to WHERE clause but is used for rows rather than columns.

c)

Similar to WHERE clause but is used for groups rather than rows.

d)

Acts exactly like a WHERE clause.

53.

What is cardinality of a table having 5 rows and 7 columns?

a)

5

b)

7

c)

12

d)

35

54.

Assuming UserProfile is a table containing a column Profession which accepts NULL value. What is the result of the following query. SELECT Profession FROM UserProfile WHERE Profession <> NULL

a)

Gives an error

b)

Returns all Profession which has values

c)

Is not an operator in SQL Server

d)

Returns an empty result set as the condition evaluated to unknown

55.
With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?
a)
SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
b)
SELECT FirstName='Peter', LastName='Jackson' FROM Persons
c)
SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
56.
Which SQL keyword is used to sort the result-set?
a)
SORT  
b)
ORDER BY
c)
SORT BY
d)
ORDER
57.
With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
a)
DELETE FirstName='Peter' FROM Persons
b)
DELETE FROM Persons WHERE FirstName = 'Peter'      
c)
DELETE ROW FirstName='Peter' FROM Persons
58.
Which operator is used to select values within a range?
a)
BETWEEN       
b)
RANGE
c)
WITHIN
59.
The LIKE SQL keyword is used along with ?
a)
JOIN clause
b)
WHERE clause
c)
GROUP BY clause
d)
ORDER BY clause
60.

_________ key is used to create a natural join on two tables.

a)

Candidate Keys

b)

Alternate Keys

c)

Foreign Key

61.
What is a foreign key?
a)
The foreign key is a column that can have NULL values
b)
The foreign key is a SQL locking mechanism
c)
A foreign key is a key field (column) in a database table, which relates the table to another table where the key is a primary key. The primary – foreign key relations are used to cross-reference database tables
62.

Which product is returned in a join query having no join condition?

a)

Equi join

b)

Cartesian

c)

Both Equi joins and Cartesian

d)

Natural

63.

In which type of join, no duplicate columns are there?

a)

Equi join

b)

Natural

c)

Left join

d)

Right join

64.

What is the correct statement for describing the INTERSECT operation?

a)

It returns the common values from the results of any two different queries

b)

It returns the common rows of two different queries which have the same set of attributes in the select clause

c)

It returns the common rows of two different queries which have the same condition in the where clause

d)

None of these

65.

______________ constraint prevents NULL values

a)

UNIQUE

b)

NOT NULL

c)

NULL

d)

FOREIGN KEY

66.

select count(distinct(fuel) ) from car_sales;

What will be the output of this query?

a)

2

b)

4

c)

6

d)

8

67.

SQL is

a)

Structured Query Language

b)

Simple Query Language

c)

Structured Question Language

d)

Structure Quality Language

68.

To remove a record from a table which SQL statement would you use?

a)

Remove

b)

Cancel

c)

Delete

d)

Eradicate

69.

In order to modify data in a database we would use which SQL statement?

a)

Update

b)

Amend

c)

Alter

d)

Modify

70.

Which SQL statement would add a record to the database?

a)

INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

b)

INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer

c)

INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer

d)

INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

71.

With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?

a)

SELECT * FROM Persons WHERE FirstName=’a’

b)

SELECT * FROM Persons WHERE FirstName LIKE ‘a%’

c)

SELECT * FROM Persons WHERE FirstName LIKE ‘%a’

d)

SELECT * FROM Persons WHERE FirstName=’%a%’

72.

What does the ALTER TABLE clause do?

a)

The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints

b)

The SQL ALTER TABLE clause is used to insert data into database table

c)

THE SQL ALTER TABLE deletes data from database table

d)

The SQL ALTER TABLE clause is used to delete a database table

73.

How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?

a)

UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

b)

MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

c)

MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

d)

UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

74.

Find the names of these cities with temperature and condition whose condition is neither sunny nor cloudy.

a)

SELECT city, temperature, condition FROM weather WHERE condition NOT IN (‘sunny’, ‘cloudy’)

b)

SELECT city, temperature, condition FROM weather WHERE condition NOT BETWEEN (‘sunny’, ‘cloudy’)

c)

SELECT city, temperature, condition FROM weather WHERE condition IN (‘sunny’, ‘cloudy’)

d)

SELECT city, temperature, condition FROM weather WHERE condition BETWEEN (‘sunny’, ‘cloudy’);

75.

Which would find pupils with "er" anywhere in their name?

a)

SELECT * FROM Pupils Where Name = "%er"

b)

SELECT * FROM Pupils Where Name = "$er$"

c)

SELECT * FROM Pupils Where Name = "%er%"

d)

SELECT * FROM Pupils Where Name = "er%"

76.

The number of rows in a relation

a)

degree

b)

tuple

c)

cardinality

d)

domain

77.

Data about data is ______________

a)

Data Description

b)

Metadata

c)

Data redundancy

d)

Data inconsistency

78.

A relational database consists of a collection of ..............

a)

tables

b)

fields

c)

records

d)

keys

79.
What language does the Relational Model use?
a)
Java
b)
Python
c)
SQL
d)
C++
80.
RDBMS
a)
Relational Database Basic Management System
b)
Relational Database Management System
c)
Required Database Management Setup
d)
None of these
81.

What do you mean by one to many relationships?

a)

One class may have many teaches

b)

One teacher can have many classes

c)

Many classes may have many teachers

d)

Many teachers may have many classes

82.

The ability to query data as well as insert, delete, and alter tuples is offered by ________

a)

DML(Data Manipulation Language)

b)

TCL(Transaction Control Language)

c)

DDL(Data Definition Language)

d)

DCL(Data Control Language)

83.

Which of the following is not a function of the database?

a)

Managing stored data

b)

Manipulating data

c)

Security for stored data

d)

Analyzing data

84.

What is the primary key in this database?

a)

Emp_Id

b)

Last Name

c)

Gender

d)

Title

85.

Which one is correct?

a)

Alternate key – primary key = Candidate keys

b)

Candidate keys - Alternate key = primary key

c)

Candidate keys – primary key = Alternate key

86.

The column which has unique values in all the rows but is not a primary key is called ............. key.

a)

candidate

b)

alternate

c)

composite

d)

foreign

87.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

88.

Which clause of Alter command can change the size of the Column?

a)

ADD

b)

MODIFY

c)

CHANGE

d)

COLUMN SIZE

89.

Which command is used to display list of all databases.

a)

Display

b)

Display List

c)

Show Databases

d)

Show Database

90.

Which of the following are SQL Components?

a)

Data Definition Language

b)

Data Manipulation Language

c)

Transaction Control Language

d)

All

91.

To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included

a)

ONLY

b)

UNIQUE

c)

DISTINCT

d)

SINGLE

92.

What would the SQL query pictured do?

a)

Find all the men

b)

Find all of the female writers

c)

Find all of Elgar's friends

d)

Find all the male writers

e)

Find all the fish

93.

Which of the following statements are true about the COUNT function?

a)

The COUNT function counts the number of rows

b)

The COUNT(*) function counts the number of rows with duplicates and NULL values

c)

The COUNT(DISTINCT) function counts the number of distinct rows

d)

COUNT(*) is equivalent to COUNT(ALL)

94.
AVG, COUNT, MAX, MIN and SUM are known as what?
a)
Aggregate functions
b)
Wildcard filters
c)
Subqueries
d)
Calculated field
95.

In which type of join, the join condition contains an equality operator?

a)

Equi join

b)

Natural

c)

Left join

d)

Right join

96.

In the given query which of the keyword has to be inserted?

INSERT INTO employee _____ (1002,Joey,2000);

a)

Table

b)

Values

c)

Relation

d)

Field

97.

SELECT * FROM Students WHERE Gender="Female" AND Class=2.2

would return how many records?

a)

1

b)

2

c)

3

d)

4

98.

SELECT * FROM cars WHERE Doors > 3

would return how many records?

a)

1

b)

2

c)

3

d)

4

99.
What is a disadvantage of a star network?
a)
It is cheap
b)
It uses one cable
c)
It is expensive
d)
It has a terminator
100.
Which of these is NOT an advantage of networks?
a)
Sharing peripheral devices such as printers and scanners
b)
Possible to communicate globally
c)
Can protect against viruses
d)
PCs can be backed up and updated by one central PC