wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Cohort 1 : Test

Total questions: 21

Worksheet time: 17mins

Name
Class
Date
1.

Choose the options that are correct regarding machine learning (ML) and artificial intelligence (AI),

a)

ML is an alternate way of programming intelligent machines.

b)

ML and AI have very different goals.

c)

ML is a set of techniques that turns a dataset into a software

d)

AI is a software that can emulate the human mind.

2.

A network of computers and other devices that is confined to a relatively small space is called?

a)

Wide Area Network

b)

Local Area Network

c)

Global Network

d)

Peer-to-Peer Network

3.

The computer you are controlling or working via a network is called?

a)

Remote computer

b)

Local computer

c)

Host computer

d)

Personal Computer

4.

In which of the following gates, the output is 1, if and only if at least one input is 1?

a)

AND

b)

OR

c)

XOR

d)

NOT

5.

You need a variable that is an integer, and you need it to be able to store negative values too. What type of integer should it be?

a)

unsigned

b)

signed

c)

positive and negative

6.

Operating System is ..........

a)

link that is to interface hardware and application software

b)

Collection of software that manages hardware resources

c)

system service provider to application program

d)

all of above

7.

Which of the following things is common in between different distros?

a)

Package manager

b)

Console

c)

Linux kernel

d)

Repository

e)

all of above

8.

Assume that we have a file names.txt, which is currently readable and writable by u and g and readable by o. If we want to remove writable by the group and remove readable by others, the command would be _______.

a)

chmod 777 file.txt

b)

chmod g+w,o+r names.txt

c)

chmod g-w,o-r names.txt

d)

chmod g+rwx,o-r names.txt

9.

Which of the following statements are True?

a)

VMs are generally larger than Containers

b)

In both VMs and Containers all applications run on the same OS.

c)

In the case of VM, each guest OS must be patched separately and in the case of Container only the OS of container host must be updated.

10.

Bluetooth is an example of

a)

personal area network

b)

local area network

c)

virtual private network

d)

none of the mentioned

11.

A set of rules that governs data communication

a)

Protocols

b)

Standards

c)

RFCs

d)

None of the mentioned

12.

IPv6 has _______ -bit addresses.

a)

32

b)

64

c)

128

d)

256

13.

Message __________ means sender and receiver expect privacy

a)

confidentiality

b)

integrity

c)

authentication

d)

none of the above

14.

Horizontal scaling means

a)

Auto Scaling

b)

you scale by adding more machines into your pool of resource

c)

you scale by adding more power (CPU, RAM) to an existing machine

d)

none of above

15.

convert (110011) to decimal

a)

51

b)

52

c)

53

d)

70000

16.

 convert  771077_{10}  to hexadecimal

a)

4F

b)

4D

c)

4A

d)

$B

17.

How do you change the type of a variable ‘x’ to float?

a)

x = float(x)

b)

x = float()

c)

float(x) = x

d)

None

18.

What is the output of the following recursive function?

def find_sum(x):

return x+find_sum(x-1)

print(find_sum(5))

a)

10

b)

0

c)

C

d)

Infinite Loop

19.

What is the output of the following code snippet?


func = lambda x: return x

print(func(2))

a)

0

b)

x

c)

Syntax error

d)

2

20.

The equivalent single line code for following snippet is:


i=[1, 2, 3, 4, 5]

def f1(x):

return x<3

m1=filter(f1, i)

print(list(m1))

a)

filter(reduce x<3, i)

b)

filter(lambda x, y: x<3, i)

c)

filter(lambda x:x<3, i)

d)

reduce(x: x<3, i)

21.

Which of the following command is used to open a file “c:\temp.txt” in read-mode only?

a)

F =open(“c:/temp.txt”, “r”)

b)

F=open(“c:\temp.txt”, “r”)

c)

F =open(file = “c:\temp.txt”, “r+”)

d)

F =open(file =“c:\\temp.txt”, “r+”)