Blog
Artificial Intelligence BSSE 6th 8th Past Paper – UOS Main Campus
University of Sargodha main campus (Department of Computer Science & IT) Artificial Intelligence paper for BSSE 6th (S+F) and 8th (60 marks, 120 minutes). Only the first page of the paper was available. Retyped from the original paper, with solved answers below.
Solved answers
Q1 – Short answers (10)
a) Pragmatics: the level of NLP that interprets meaning in context — what the speaker intends, beyond the literal words. Example: “Can you pass the salt?” is a request, not a question about ability.
b) Referential ambiguity: it is unclear which object a word (often a pronoun) refers to. Example: “Ali told Ahmad that he passed” — “he” may be Ali or Ahmad.
c) Image processing vs computer vision: image processing takes an image and outputs an improved/transformed image (noise removal, sharpening, edge detection); computer vision takes an image and outputs an understanding of it (recognising objects, faces, scenes).
d) Why computer vision is hard: a 3D world is projected to 2D (depth is lost), and the same object looks very different under changes in lighting, viewpoint, scale, occlusion, background clutter and deformation; images contain huge amounts of data and noise, and recognition needs a lot of world knowledge.
e) Object characteristics for recognition: shape/contour, size, colour, texture, edges and corners (features), position and orientation, and relationships with other objects/context.
Q2 (a) – Prolog queries (4)
1. wizard(harry). The fact wizard(ron) does not match, so Prolog uses the rule wizard(X) :- hasBroom(X), hasWand(X) with X = harry. hasBroom(harry) is proved with the rule hasBroom(X) :- quidditchPlayer(X) and the fact quidditchPlayer(harry); hasWand(harry) is a fact. Answer: true (yes). Rule of inference: modus ponens (backward chaining with unification).
2. wizard(Y). First the fact gives Y = ron; on backtracking (;) the rule gives Y = harry; then no more answers (false).
Q2 (b) – Prolog representation (6)
friends(ali, ahmad). likes(T, S) :- teacher(T), student(S), obedient(S). jealous(X, Y) :- person(X), person(Y), money(X, MX), money(Y, MY), MY > MX. eats(ahmad, X) :- nutritious(X). eats(ahmad, X) :- tasty(X).
Q3 – Predicate calculus (10)
- i. ¬∀x (Student(x) → Dislikes(x, Databases)), equivalently ∃x (Student(x) ∧ ¬Dislikes(x, Databases)).
- ii. ∀x (Planet(x) ∧ EarthLike(x) → SupportsLife(x)).
- iii. ∃x (Student(x) ∧ ∀y (Subject(y) → Likes(x, y))).
- iv. ∃x (Planet(x) ∧ EarthLike(x)) ∧ ∃y (Planet(y) ∧ ¬EarthLike(y)).
- v. ¬∃x (x > 0 ∧ ∀y (y > 0 → x ≤ y)), equivalently ∀x (x > 0 → ∃y (0 < y < x)).
