wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AI Midterm

Total questions: 63

Worksheet time: 1hrs 25mins

Name
Class
Date
1.

Which one of these is not an area of AI?

a)

computer vision/image recognition

b)

voice recognition

c)

web design

d)

robotics

2.
Artificial Intelligence is the process that allows computers to learn and make decisions like humans
a)
True
b)
False
3.

What is A.I?

a)

Intelligence demonstrated by machines

b)

Smart robots

c)

Anthony Ian

d)

I don't know

4.

What technology enables thinking capability in computers?

a)

Deep Learning

b)

Artificial Intelligence

c)

AGI

d)

None of the above

5.

Weak AI is designed for a specific task

a)

true

b)

false

6.

The term A.I is short for?

a)

Anatomy Insector

b)

Astrology Iselin

c)

Anh Intelligence

d)

Artificial Intelligence

e)

Antificial Intelligence

7.
Artificial Intelligence is the process that allows computers to learn and make decisions like humans
a)
True
b)
False
8.
Artificial Intelligence is the process that allows computers to learn and make decisions like humans
a)
True
b)
False
9.

What is this?

a)

artificial intelligence

b)

algorithm

c)

neural network

10.

(Multiple Choose) Choose AI Factors

a)

Data

b)

Sophia

c)

Machine Learning

d)

Natural Language Processing

e)

Robotics

11.

___________________________ is to read, decipher, understand, and make sense of the human languages in a manner that is valuable.

a)

Natural Language Processing

b)

Machine Learning

c)

Computer Vision

12.

Why do machines demonstrate artificial intelligence?

a)

Because machines are not really intelligent compare to humans.

b)

Because machines are capable of doing tasks for humans by programming them with a specific information.

c)

Because machines are useful and relevant in our daily lives.

d)

Because machines give you artificial information which are important.

13.

How does artificial intelligence become useful to society?

a)

It becomes helpful in completing tasks quickly and efficiently thus producing more products

b)

It becomes helpful in completing tasks quickly thus makes people lazy

c)

It becomes helpful in making task easier and less efficient resulting to the boost of economy.

d)

It helps us to complete our task.

14.

In what way can artificial intelligence become harmful?

a)

Excessive use of AI makes people lazy since they rely too much on it.

b)

By using AI as a weapon in wars, many innocent lives will be affected.

c)

AI replaces the human force resulting to less job opportunities to human workers.

d)

AI programmed devices are harmful through the radiation it produces.

15.

How does A.i work?

a)

Combining large amounts of data with fast processing and intelligent algorithms, allowing the software to learn automatically from patterns or features in the data.

b)

The computation, mostly on computers, of antiderivatives and definite integrals in term of formulas

c)

It just works you know??

d)

Another super duper long answer to fool you guys to prove that not all longest answers are the correct ones, how is my quiz going anyway, i hope it is good, hope it is not too long though, thank you for not clicking

16.

machine learns from examples or experiences. We need to provide training data with correct outcomes (e.g. types of animals) for the machine to ______. After learning from the training data, a predictive model is generated for the machine to make future predictions.

a)

exam

b)

test

c)

practice

d)

learn

17.

Artificial Intelligence is superset of ________________________ & ________________________ ,

a)

Machine Learning & Neural Networks

b)

Machine Learning & Deep Learning

c)

Deep Learning & Neural Networks

18.

This requires computer scientists to formulate general-purpose learning algorithms that help machines learn more than just one task.

a)

Machine Learning

b)

Deep Learning

c)

Neural Networks

19.

All three of these AI concepts – machine learning, deep learning, and neural networks – can enable hardware and software robots to “think” and act dynamically, outside the confines of _______________.

a)

Code

b)

Human Brain

20.
An error in a program that prevents the program from running as expected. 
a)
Coding
b)
Algorithm
c)
Bug
d)
Event
21.
A placeholder for a piece of information that can change. 
a)
Loop
b)
Event
c)
Variable
d)
Program
22.
The action of doing something over and over again
a)
Program
b)
Function
c)
Variable
d)
Loop
23.
Statements that only run under certain conditions or situations. 
a)
Conditionals
b)
Variables
c)
Loops
d)
Commands
24.
A list of steps to finish a task. A set of instructions that can be performed with or without a computer. 
a)
recipe
b)
algorithm
c)
statement
d)
loop
25.
One or more commands or algorithm(s) designed to be carried out by a computer.
a)
Coding/Programming
b)
Binary
c)
URL
d)
Computer Science
26.
This is the piece of code that you add to a program to indicate that the program should run the code inside a function at a certain time. 
a)
Call a function
b)
Command
c)
DeBug
d)
Shout out
27.
To add code inside a function so that the program knows what it is supposed to do when the function is called. 
a)
Call a function
b)
algorithm 
c)
command
d)
Define a function
28.
What will print?
a)
nothing
b)
5
c)
6
d)
an error message
29.
How many times will Boo print?
a)
none
b)
4
c)
5
d)
1
30.

Which of the following terms best describes the code above?

a)

function call

b)

function definition

31.

Rewrite this line of code correctly!

(a)  

32.

Rewrite this line of code correctly!


(Hint: combine the words 'draw' and 'shape' into one word)

(a)  

33.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
34.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
35.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
36.
Which function takes a users input
a)
print()
b)
int()
c)
input()
d)
def
37.
a)

A

b)

B

c)

C

d)

D

38.
a)

A

b)

B

c)

C

d)

D

39.
a)

A

b)

B

c)

C

d)

D

40.
This operator means that one value is not equal to another value
a)
==
b)
<=
c)
>=
d)
!=
41.

What is the output?

a)

condition

b)

True

c)

Program has a syntax error.

d)

3 > 2

42.

What is the output?

a)

more than 7

b)

more than 23

c)

spam

d)

7

43.

An If statement can be executed multiple times

a)

FALSE

b)

TRUE

44.

What is the output?

a)
Hello world!
b)
Hello world
c)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
d)
Error
45.

What is the output if the user types "Python"?

a)
Welcome
b)
Try again!
c)
Error
d)
Enter your password
46.

In programming, what is iteration?

a)

The repetition of steps within a program

b)

The order in which instructions are carried out

c)

A decision point in a program

d)

Testing a program to make sure it works

47.

Which kind of loop would be used?


I need a guessing game program that will let me keep guessing until I get the right answer.

a)

FOR Loop

b)

WHILE Loop

48.

Which kind of loop would be used?


I need a revision program that will run through revision questions 4 times.

a)

FOR Loop

b)

WHILE Loop

49.
What will print?
a)
nothing
b)
5
c)
6
d)
an error message
50.
How many times will Boo print?
a)
5
b)
4
c)
none
d)
infinite
51.

What does this code print?

a)

A

B

C

b)

A

C

c)

A

d)

A

B

52.

What does the code print?

a)

B

C

b)

A

C

c)

B

d)

A

e)

C

53.

What does the code print?

a)

10 stars, then the word "Done"

b)

4 stars, then the word "Done"

c)

Just the word "Done"

d)

Infinitely many stars

54.

Which of the names below follows all the naming rules?

a)

my_function

b)

Draw A Circle

c)

4_circles

d)

make_square

55.

Look at the following code:

name = "John"

age = 23

What type of data is stored in the variable name?

a)

str

b)

int

c)

float

d)

nothing

56.

Look at the following code:

name = "John"

age = 23

What type of data is stored in the variable age?

a)

str

b)

int

c)

float

d)

nothing

57.

If I want to store my name in a variable, which of the following would be a good variable name in best practice?

a)

name

b)

teacher

c)

mister

d)

abcdef

58.

Look at the following code:

age = "23"

age = int(age)


What does the int() function do to the data in my variable?

a)

does nothing

b)

changes the string to a float

c)

changes the number to a string

d)

changes the string to an integer

59.

Select all strings:

a)

greeting = (Hello)

b)

greeting = ("Please enter your name")

c)

greeting = (Welcome to Comp Sci)

d)

greeting = ("Happy Friday!!!")

60.

Please select all floating point numbers:

a)

1.444

b)

34567

c)

777.980

d)

32.0

e)

21

61.

What is the output of the following

x='5'

y='6'

print(x+y)

(a)  

62.

What are algorithms used for?

a)

To plan out the solution to a problem

b)

As a platform to program a solution

c)

To test a solution to a problem

63.

Which symbol is used to add a comment in Python?

a)

/

b)

//

c)

#

d)

@