Intelligent behaviour in a computer

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Intelligent behaviour in a computer

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A computer program looks at a car's symptoms and suggests which part is faulty. Is this intelligent behaviour?
A No, only humans can ever diagnose faults
B Yes, diagnosing a fault normally needs human thinking
2. Which statement about a chess program choosing a good move is correct?
A It shows intelligent behaviour by choosing a move a human would need to think about
B It is not intelligent because chess is only a game
3. Does a computer that shows intelligent behaviour truly understand what it is doing?
A Yes, it understands just like a human
B No, it only simulates thinking
4. Which task shows intelligent behaviour?
A Recognising a pattern in photos to tell cats from dogs
B Adding 2 + 2 using a fixed calculator button
5. What does intelligent behaviour in a computer mean?
A Doing a task that normally needs human thinking
B Having feelings and real understanding like a person

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1intelligent behaviour AA computer does a task that normally needs human thinking, such as diagnosing a fault or choosing a game move
2simulates thinking BThe program only simulates thinking by following rules and data. It does not truly understand the game like a person.
3Diagnosing a problem is intelligent behaviour because a doctor or engineer would normally need to think to do it CIF symptom = "no power" THEN OUTPUT "Check the battery"
4Choosing a move in a game is intelligent behaviour because a human player would need to think ahead Dbest_move ← CHOOSE_BEST(board)
5A chess program understands chess the way a human player does, so it truly thinks. ESimple fixed calculations do not need human thinking such as diagnosing or choosing. Intelligent behaviour means doing tasks that normally need human thought.
6A calculator adding 2 + 2 is intelligent behaviour because it uses a fixed formula. FThe computer copies the results of human thinking using data and rules, but it does not truly understand what it is doing

Definitions

intelligent behaviour

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
IF fault = "no power" ____ OUTPUT "Check the cable" ENDIF
2.
IF newScore _ bestScore THEN bestMove ← move ENDIF
3.
IF shape = "circle" ___ colour = "red" THEN OUTPUT "Red ball" ENDIF
4.
simulatesThinking ← TRUE understands ← _____ OUTPUT understands
5.
_____ symptom diagnosis ← lookup(symptom) OUTPUT diagnosis

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A IF battery = 0 THEN
B fault ← flat battery
C ENDIF
D OUTPUT fault
Question 2
A IF can_win THEN
B move ← BlockOpponent()
C ELSE
D move ← BlockOpponent()
E ENDIF
Question 3
A edges ← 0
B FOR i ← 1 TO 99
C IF a[i] <> a[i+1]
D edges ← edges + 1
E ENDIF
F NEXT i
Question 4
A IF temp > 38 THEN
B symptom ← "fever"
C ENDIF
D IF symptom ← "fever" THEN
E OUTPUT "See a doctor"
F ENDIF
Question 5
A understands ← TRUE
B OUTPUT "I can play chess"
C IF understands = FALSE THEN
D OUTPUT "I only simulate"
E ENDIF

Answer Key

Intelligent behaviour in a computer
Section A: Quick Questions
Q1
B — Yes, diagnosing a fault normally needs human thinking
Q2
A — It shows intelligent behaviour by choosing a move a human would need to think about
Q3
B — No, it only simulates thinking
Q4
A — Recognising a pattern in photos to tell cats from dogs
Q5
A — Doing a task that normally needs human thinking
Section B: Match the Pairs
Q1
intelligent behaviour → A computer does a task that normally needs human thinking, such as diagnosing a fault or choosing a game move
Q2
simulates thinking → The computer copies the results of human thinking using data and rules, but it does not truly understand what it is doing
Q3
Diagnosing a problem is intelligent behaviour because a doctor or engineer would normally need to think to do it → IF symptom = "no power" THEN OUTPUT "Check the battery"
Q4
Choosing a move in a game is intelligent behaviour because a human player would need to think ahead → best_move ← CHOOSE_BEST(board)
Q5
A chess program understands chess the way a human player does, so it truly thinks. → The program only simulates thinking by following rules and data. It does not truly understand the game like a person.
Q6
A calculator adding 2 + 2 is intelligent behaviour because it uses a fixed formula. → Simple fixed calculations do not need human thinking such as diagnosing or choosing. Intelligent behaviour means doing tasks that normally need human thought.
Section C: Definitions
Q1
intelligent behaviour — A computer does a task that normally needs human thinking, like diagnosing a fault or choosing a game move, but it only simulates thinking and does not truly understand.
Section D: Fill in the Blanks
Q1
IF fault = "no power" THEN OUTPUT "Check the cable" ENDIF
Q2
IF newScore > bestScore THEN bestMove ← move ENDIF
Q3
IF shape = "circle" AND colour = "red" THEN OUTPUT "Red ball" ENDIF
Q4
simulatesThinking ← TRUE understands ← FALSE OUTPUT understands
Q5
INPUT symptom diagnosis ← lookup(symptom) OUTPUT diagnosis
Section E: Spot the Error
Q1
B — The text flat battery must be in quotes so it is stored as a string. Without quotes the computer looks for a variable called flat. It should be fault ← "flat battery".
Q2
B — When can_win is true, the game AI should choose the winning move, not block. Line 2 should be move ← WinningMove().
Q3
C — An IF statement must end with THEN. Line 3 should be IF a[i] <> a[i+1] THEN so the pattern check (a change between neighbours) works.
Q4
D — A condition must compare values with =, not assign with ←. Line 4 should be IF symptom = "fever" THEN.
Q5
A — A computer that shows intelligent behaviour only simulates thinking and does not truly understand. Line 1 should set understands ← FALSE.