Faculty of Computer Studies
Information Technology and Computing Program
M105: Introduction to Programming with Java
Midterm Examination (MTA ver. 2)
Spring 2012 / 2013
Date: . / . / 2013
Number of Exam Pages:
(4) Time Allowed:
(90 minutes)
Instructions:
M105: Introduction to Programming with Java
Mock Final Exam with Solution
Spring 2012 / 2013
Question One:
[15 marks: 1.5 each]
Choose the correct answer and write it on the external answer booklet.
1. The command _ executes a Java application.
a. javac
b
Faculty of Computer Studies
Information Technology and Computing Program
M105: Introduction to Programming with Java
Midterm Examination (MTA ver. 3)
Spring 2012 / 2013
Date: . / . / 2013
Number of Exam Pages:
(4) Time Allowed:
(90 minutes)
Instructions:
M105: Introduction to Programming with Java
Mock MTA with Solution
Spring 2012 / 2013
Question One:
[9 marks: 1.5 each]
Choose the correct answer and write it on the external answer booklet.
1. Every year or two, the capacities of computers have approxima
9. Relations
Relations and Their Properties
Binary relations:
Let A and B be any two sets.
A binary relation R from A to B, written
R : A B,
is a subset of the Cartesian product AB.
The notation a R b means (a, b) R.
The notation a R b means (a, b) R.
10. Graphs
Graphs and Graph Models
Definition 1: A graph G = (V , E ) consists of V, a
nonempty set of vertices (or nodes) and E, a set of
edges. Each edge has either one or two vertices
associated with it, called its endpoints. An edge is
said to connect
M131-Chapter8
By Ms. Suha Al-Shaikh-Dammam
8.1 Relations and their properties
Binary relation
Let A, B be any two sets.
A binary relation R from A to B, written R:AB, is a subset of AB.
The notation a R b or aRb means (a,b)R.
The notation a R b or aRb mea
M131-Chapter9
By Ms. Suha Al-Shaikh-Dammam
Chapter 9: Graphs
Section (9.1): Graph and Graph Models
A graph G =(V, E) where:
V: set of vertices (nodes)
E: set of edges.
Definition: A graph G=(V,E) consists of V, a non-empty set of vertices and E, a set of
11. Trees
Trees
A tree is a connected simple undirected graph
with no simple circuits.
Properties:
o There is a unique simple path between any 2
of its vertices.
o No loops.
o No multiple edges.
Arab Open University Faculty of Computer Studies
M131 - Di
Duration 2 Hours
Part 1: MULTIPLE CHOICE QUESTIONS
You may solve all questions. Each question is worth 4 marks. Your grade in this
part is that of the best 5 questions, giving a total of 20 possible marks.
Q1: The negation of the proposition x is less tha
Duration is 90 Minutes
Part 1: MULTIPLE CHOICE QUESTIONS
You may solve all questions. Each question is worth 3 marks. Your grade in
this part is that of the best 4 questions, giving a total of 12 possible marks.
Q1: If S is a set such that |S| = 3, then |
Duration is 90 Minutes
Part 1: MULTIPLE CHOICE QUESTIONS
You may solve all questions. Each question is worth 1.5 marks. Your grade in
this part is that of the best 4 questions, giving a total of 6 possible marks.
Q1: If S is a set such that |S| = 3, then
Chapter 10: Ethics of IT Organizations
TRUE/FALSE
1. The United States has several federal laws that prohibits the export of toxic waste.
ANS: F
PTS: 1
REF: 409
2. The number of declared undergraduate computer science majors at doctoral-granting computer
Chapter 9: Social Networking
TRUE/FALSE
1. The average Facebook user logs in 19 times per month and spends nearly 6 hours on the site each
month.
ANS: T
PTS: 1
REF: 367
2. A number of organizations are exploring the use of virtual online worlds to improve
Chapter 8: The Impact of Information Technology on Productivity and the Quality of
Life
TRUE/FALSE
1. Studies over the last ten years have estimated that at least 98,000 people die in hospitals each year due
to preventable medical mistakes.
ANS: T
PTS: 1
Chapter 4: Privacy
TRUE/FALSE
1. Title III of the Omnibus Crime Control and Safe Streets Act (the Wiretap Act) authorizes wiretapping
and electronic eavesdropping but only under strict restrictions including the obtaining of a warrant
from a judge.
ANS: T
Chapter 5: Freedom of Expression
TRUE/FALSE
1. Anonymous political expression played an important role in the early formation of the United States.
ANS: T
PTS: 1
REF: 205
2. The Fifth Amendment protects the right to freedom of religion and freedom of expr
Chapter 7: Software Development
TRUE/FALSE
1. The impact of software defects can be trivial.
ANS: T
PTS: 1
REF: 209
2. Sun Microsystems had to create patches for 10 vulnerabilities in its Mac OS X operating systems
10.3.9 (dubbed Panther) and 10.4.2 (Tige
Chapter 2: Ethics for IT Professionals and IT Users
TRUE/FALSE
1. The United States has adopted labor laws and regulations that require a more precise definition of what
is meant by a professional employee.
ANS: T
PTS: 1
REF: 40
2. When BSA finds cases of
Chapter 3: Computer and Internet Crime
TRUE/FALSE
1. Vishing frequently leads consumers to counterfeit Web sites designed to trick them into initiating a
denial-of-service attack.
ANS: F
PTS: 1
REF: 95
2. There are specific laws that apply to the gatherin
Chapter 1: An Overview of Ethics
TRUE/FALSE
1. An organizations mission statement highlights its key ethical issues and identifies the overarching
values and principles that are important to the organization and its decision making
ANS: F
PTS: 1
REF: 11-1
Chapter 6: Intellectual Property
TRUE/FALSE
1. The Fair Use Doctrine is a defense often employed by the defendant in trademark infringement cases.
ANS: F
PTS: 1
REF: 261
2. Formulas, inventions, and processes are not considered forms of intellectual prope