0% found this document useful (0 votes)
5 views5 pages

AI303 - Knowledge Representation - Fall - Exam

This document outlines the exam details for the course AI 303: Knowledge Representation at Misr University for Science and Technology for the Fall 2024-2025 semester. It includes instructions for answering questions, a breakdown of the exam format, and specific questions related to XML, DTD, and ontologies. The exam consists of four questions, with a total of 30 marks available.

Uploaded by

manchestermilf1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

AI303 - Knowledge Representation - Fall - Exam

This document outlines the exam details for the course AI 303: Knowledge Representation at Misr University for Science and Technology for the Fall 2024-2025 semester. It includes instructions for answering questions, a breakdown of the exam format, and specific questions related to XML, DTD, and ontologies. The exam consists of four questions, with a total of 30 marks available.

Uploaded by

manchestermilf1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Misr University for Science and Technology

College of Information Technology

Academic Semester: Fall 2024 - 2025 Level: 3


Department: Artificial Intelligence Program: Artificial Intelligence
Course Code: AI 303 Course Title: Knowledge Representation
Exam Date: 30 / 11 / 2024 Total Marks: 30 Marks 30
Time Allowed: 1 Hour Duration: 3 : 30 - 4 : 30 PM
Examiners Committee: Dr. Ashraf Hendam Exam Type: Exam (2)
Answer [All/4] Questions. Exam in 4 Page(s)

Student Name: Student ID:

 Answer All questions. Leaving a question will result in mark deduction.


 The exam follows a multiple-choice questions format, so please identify the choice that Best
completes the statement or answers the question.
 All question answers are to be written on this question sheet.

Question 1: Determine which of the following statements true or false (10 Marks)
1. One of the problems of Keyword-Based Search Engines is results are highly sensitive to vocabulary.
( )
2. The Semantic Web Approach represent Web content in a form that is more easily human processable.( )
3. An ontology is an implicit and formal specification of a conceptualization( )
4. HTML documents do not contain structural information.( )
5. A serialization format is a way to encode information so that when it’s passed between machines it can
be parsed.( )
6. Tags in XML may overlap ( )
7. @ symbol is used in xpath to select nodes from the root node( )
8. Enumeration type of XML Schema Data types Defines the exact sequence of characters that are
acceptable.( )
9. Document Type Definition (DTD) contains data types more than XML schema.( )
10. Ontologies are useful for improving the accuracy of web searches.( )

(Exam Page 1 of 5)
Misr University for Science and Technology
College of Information Technology

Question 2: (8 Marks)

a) Mention three of the rules which makes Well-Formed XML Documents (3


Marks)

b) Convert the following XML file into Well-Formed XML Documents (5 Marks)
<bookstore>
<book>
<122title lang="en" lang="ar">Harry Potter<price>29.99</title></price>
</book>
<bookstore>
<book>
<title lang="en">Learning XML</title>
<price>39.95</price>
</book>
</bookstore>

Questions continue on next page 

(Exam Page 2 of 5)
Misr University for Science and Technology
College of Information Technology

Question 3: (6 Marks)
Given the following Document Type Definition (DTD)
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE pizza [

<!ELEMENT pizza (onion?, cheese+, dough*, topping)>

<!ELEMENT dough (#PCDATA)>

<!ELEMENT onion (#PCDATA)>

<!ELEMENT cheeze (#PCDATA)>

<!ELEMENT topping (#PCDATA)>

<!ATTLIST pizza

type CDATA #REQUIRED

action CDATA #IMPLIED

]>

]>

Decide which of the following XML files are valid or not valid according to the previous DTD. Also
for not valid files make the necessary corrections to make it valid.

Question Correction
a) <pizza action=“well done” >

<dough> middle ordinary </dough>

<dough>crispy edges</dough>

<topping>oregano </topping>

</pizza>

(Exam Page 3 of 5)
Misr University for Science and Technology
College of Information Technology

b) <pizza type=“class2” >


< onion > fried </ onion >
< onion > raw </ onion >
<cheese> ordinary </cheese>
<cheese> ordinary </cheese>
<dough> middle ordinary </dough>
</pizza>
c) <pizza type=“class3” >
<dough> middle ordinary </dough>
< onion > raw </ onion >
</pizza>

Question 4: (6 Marks)
Draw a tree that represent the following XML file
<library location="Bremen">
<author name="Henry Wise">
<book title="Artificial Intelligence"/>
<book title="Modern Web Services"/>
<book title="Theory of Computation"/>
</author>
<author name="Cynthia Singleton">
<book title="The Semantic Web"/>
<book title="Browser Technology Revised"/>
</author>
</library>

(Exam Page 4 of 5)
Misr University for Science and Technology
College of Information Technology

Instructor Signature End of Questions Good luck!

(Exam Page 5 of 5)

You might also like