WorksheetsAI Selection Test
Total questions: 29
Worksheet time: 15mins
Name
Class
Date
1.
Name as in the MyKad
4 lines
2.
MyKad number
4 lines
3.
Which statement is not true of AI algorithms?
a)
Many AI algorithms are capable of learning from data
b)
AI algorithms can enhance themselves by learning new strategies
c)
AI algorithms can write other algorithms
d)
AI algorithms always consider every possibility combination
4.
The advantage of artificial intelligence over humans are
a)
They do not require sleep or rest
b)
They can carry our dangerous jobs in hazardous environments
c)
They do not get bored or tired
d)
All of the above
5.
In artificial intelligence, an intelligent agent can best be described as…
a)
An autonomous entity which observes through sensors and acts upon an environment using actuators
b)
A person that works with an AI system to train it to follow a set of instructions
c)
An artificial intelligent system used for spying on other nations or organization
d)
An algorithm that creates other algorithms which act as agents
6.
Chatbots allow humans to concentrate on what type of problem?
a)
Automatic pricing and fines
b)
Ambiguous or awkward problems that require judgement.
c)
Standard answers to routine questions.
d)
Mundane repetitive problems
7.
What is ‘strong AI’?
a)
Strong AI is an AI capable of speech recognition only
b)
Strong AI is an AI capable of all and any cognitive functions that a human may have, and is in essence no different than a real human mind
c)
Strong AI is an AI that is capable of super human feats of strength though strong robotics
d)
Strong AI is an AI that is specifically designed to be focused on a narrow task
8.
If Human’s and AI entities ‘learn from experience’ what does Machine Learning learn from?
a)
Data
b)
Numbers
c)
Experience
d)
Information
9.
The ethics of artificial intelligence can best be described as…
a)
The rights and privileges of AI systems
b)
How Robots and other artificially intelligent beings treat humans
c)
The acquisition of moral values by robots and AI systems
d)
The morality of how humans design, construct, use and treat robots and other artificially intelligent beings
10.
In AI, learning can be…
a)
Supervised
b)
Semi-supervised
c)
Unsupervised
d)
All Above
11.
Artificial intelligence can be used to…
a)
Predict what a particular customer is likely to buy
b)
Identify credit fraud in real time and detect insurance claims fraud
c)
Automate personalized targeting of digital ads
d)
All of the above
12.
What popular Machine Learning technique is inspired by the human brain?
a)
Algorithms
b)
Narrow AI
c)
Decision trees
d)
Neural Networks
13.
What is the output of the following program :
a)
0 2 1 3 2 4
b)
0 1 2 3 4 5
c)
Error
d)
1 0 2 4 3 5
14.
Where is the correct place to insert a JavaScript?
a)
Both the <head> section and the <body>
b)
<head>
c)
<body>
d)
Between <head> and <body>
15.
What will the following code return: Boolean(10 > 9) in JavaScript
a)
True
b)
False
c)
NaN
d)
None of above or Error
16.
What is the output of the expression : 3*1**3 in python
a)
3
b)
9
c)
27
d)
1
17.
Write a function in JavaScript / Python to return hypotenuse value of a right triangle in the Pythagoras theorem when height and width are inputted.
4 lines
18.
Write a function in JavaScript / Python to get the highest value from a series of random number.
4 lines
19.
Which one is NOT a legal variable name in Python?
a)
my-var
b)
my_var
c)
_myvar
d)
MyVar
20.
What is the output of the following code
a)
0 1 2
b)
0 1 2 0
c)
Error
d)
None of the above
21.
What is the output of the following code:
console.log(1 + 2 + "2");
a)
5
b)
122
c)
32
d)
NaN
22.
What is the output of following code ?
a)
5
b)
6
c)
Undefined
d)
Error
23.
What is the output of following code ?
a)
z is 100, new value of global z is: 100, value of z is 100
b)
z is 100, new value of global z is: 100, value of z is 50
c)
z is 100, new value of global z is: 50, value of z is 100
d)
z is 100, new value of global z is: 50, value of z is 50
24.
What is the output of following code ?
a)
300 -100
b)
200 0
c)
200 100
d)
0 300
25.
Which of the ways below is incorrect of instantiating a date in JavaScript?
a)
new Date(dateString)
b)
new Date()
c)
new Date(seconds)
d)
new Date(year, month, day, hours, minutes, seconds, milliseconds)
26.
A variable in JavaScript declared with which of the following keyword?
a)
let
b)
new
c)
int
d)
string
e)
none of above
27.
Which of the following is NOT a JavaScript object?
a)
var obj = {};
b)
var obj = {name: "ali"};
c)
var obj = {age = 7};
d)
var obj = new Object();
28.
What will be the output of the following JavaScript code?
a)
0
b)
null
c)
1
d)
no output
29.
Which of the following is NOT a correct way of declaring an array in JavaScript?
a)
var arr = [1, "two", 3, 4];
b)
var arr = new Array();
c)
var arr = new Number()[5];
d)
None of above
100 %
