WorksheetsCohort 1 : Test
Total questions: 21
Worksheet time: 17mins
Choose the options that are correct regarding machine learning (ML) and artificial intelligence (AI),
ML is an alternate way of programming intelligent machines.
ML and AI have very different goals.
ML is a set of techniques that turns a dataset into a software
AI is a software that can emulate the human mind.
A network of computers and other devices that is confined to a relatively small space is called?
Wide Area Network
Local Area Network
Global Network
Peer-to-Peer Network
The computer you are controlling or working via a network is called?
Remote computer
Local computer
Host computer
Personal Computer
In which of the following gates, the output is 1, if and only if at least one input is 1?
AND
OR
XOR
NOT
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?
unsigned
signed
positive and negative
Operating System is ..........
link that is to interface hardware and application software
Collection of software that manages hardware resources
system service provider to application program
all of above
Which of the following things is common in between different distros?
Package manager
Console
Linux kernel
Repository
all of above
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 _______.
chmod 777 file.txt
chmod g+w,o+r names.txt
chmod g-w,o-r names.txt
chmod g+rwx,o-r names.txt
Which of the following statements are True?
VMs are generally larger than Containers
In both VMs and Containers all applications run on the same OS.
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.
Bluetooth is an example of
personal area network
local area network
virtual private network
none of the mentioned
A set of rules that governs data communication
Protocols
Standards
RFCs
None of the mentioned
IPv6 has _______ -bit addresses.
32
64
128
256
Message __________ means sender and receiver expect privacy
confidentiality
integrity
authentication
none of the above
Horizontal scaling means
Auto Scaling
you scale by adding more machines into your pool of resource
you scale by adding more power (CPU, RAM) to an existing machine
none of above
convert (110011) to decimal
51
52
53
70000
convert 7710 to hexadecimal
4F
4D
4A
$B
How do you change the type of a variable ‘x’ to float?
x = float(x)
x = float()
float(x) = x
None
What is the output of the following recursive function?
def find_sum(x):
return x+find_sum(x-1)
print(find_sum(5))
10
0
C
Infinite Loop
What is the output of the following code snippet?
func = lambda x: return x
print(func(2))
0
x
Syntax error
2
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))
filter(reduce x<3, i)
filter(lambda x, y: x<3, i)
filter(lambda x:x<3, i)
reduce(x: x<3, i)
Which of the following command is used to open a file “c:\temp.txt” in read-mode only?
F =open(“c:/temp.txt”, “r”)
F=open(“c:\temp.txt”, “r”)
F =open(file = “c:\temp.txt”, “r+”)
F =open(file =“c:\\temp.txt”, “r+”)
