Cs101 Final Prepration - PDF Version 1
Cs101 Final Prepration - PDF Version 1
CS101
With Vu Family
Join Vu Family
https://web.facebook.com/groups/194928438230537/
Short Questions:
(2 marks each)
Short Questions:
(3 marks each)
Q1. Suppose we have a big project. Draw hierarchy of the people involved in
the project?
❖ Executive Team
❖ CEO,
❖ COO,
❖ CMSO
❖ Quality Architecture Team
❖ Business Development Team
❖ Technology Transfer Team
❖ Process Team
❖ Quality Assurance Team
❖ Support Team
❖ Configuration Management Team
❖ Development Team D
❖ Development Team C
❖ Development Team B
❖ Development Team A
<head>
<script language="JavaScript">
function doSomething() { // 1
setTimeout('doSomething()',10000); // 2 }
</script>
</head>
<body onLoad="doSomething()"> // 3
document.write(“Virtual University of Pakistan”);
</body>
</html>
// 3 document.write(“Virtual University of Pakistan”);
Q4. What are the advantages of multimedia presentations? Write any five.
Following are the advantages of multimedia presentations.
Q1. How instant messaging works? Write the steps involved in this process.
The Instant Messaging services available allow us to maintain a list of people
(contacts) that we interact with regularly. We can send instant messages to any of
the contacts in our list as long as that contact is online.
Following steps are involved in IM working:
❖ User commences the IM client.
❖ IM client finds the IM server & logs in.
❖ It launches communication info (IP address, etc) to the IM server.
❖ IM server finds user’s contacts & sends him/her the communication info.
❖ IM server also notifies the contacts that the user is online; sends his/her
communication info to them.
❖ The user’s & the contact’s IM clients are ready to communicate directly (P2P).
❖ As new contact has come online, IM server informs them about the user being
online & vice versa.
❖ Multiple, real-time chat are possible.
❖ When the user logs-off, his/her IM client informs the IM server.
❖ IM server wipes away the temporary file and informs the user’s contacts about
his/her ‘offline’ status.
Q2. Define the following terms.
Object:
Object is a named collection of properties (data, state) & methods (instructions,
behavior).
Event Handler:
An event handler is a command which calls a function when an event happens, such
as the user clicking a button.
Local Variable:
Declaring variables (using the var keyword) within a function makes them local.
They are available only within the function and hold no meaning outside of it.
Scope of Variable:
Defining the space in which a variable is effective is known as defining the scope
of a variable. A variable can be either local or global in scope.
Array:
Array is an indexed list of elements.