Monday 4 June 2012

cs101 Final Term Solved Papers


Question No: 31 (Marks: 1)
What is heuristic?

Heuristic is a procedure that usually, but not always, works or that gives nearly the right answer.

Question No: 32 (Marks: 1)
In programming, what is an object?


Object is a named collection of properties (data, state) & methods (instructions,
behavior).

Question No: 33 (Marks: 2)
What is spreadsheet? List any two jobs that it can do.


A spreadsheet is a grid that organizes data into columns and rows. Spreadsheets make iteasy to display information, and people can insert formulas to work with the data.
Electronic replacement for ledgers
Charts
Financial-forecasting.

Question No: 34 (Marks: 2)

In JavaScript, what is event handling? What are the two types of events?
In JavaScript capturing events and responding to them is event handling. The system
sends events to the program and the program responds to them as they arrive.

1. Events can include things a user does - like clicking the mouse.
2. Events that the system itself does - like updating the clock.
Question No: 35 ( Marks: 3 )
Explain how many ways businesses monitor their employees?


• Systems are available that monitor almost every key stroke that an employee makes on
a computer.
• Systems are available that read and censor all incoming and outgoing eMail.
• It is quite straight forward to monitor where you surf the web.
Question No: 36 ( Marks: 3 )
What is difference between Design and System Architecture?







System architecture is the conceptual design that defines the structure and/or behavior of

a system. Whereas designs it as an independent, self-contained system.

Question No: 37 ( Marks: 3 )
What are the Sub categories of Artificial Intelligence? Briefly explain any two.


1. Expert systems:
2. Robotics:
Robotics is an automatic machine that performs various tasks that were previously done
by humans.
Question No: 38 ( Marks: 5 )
Two Ways of Calling Functions:
until it is told to run.
function popUp( message ) {
}
c = a + b ;
2. A function calls appearing as part of a statement. Definitions of such functions
include a ‘return’ statement:
function add( a, b ) {
popUp( “Warning!” ) ;
window.alert( message ) ;
1. A function calls appearing as a complete statement:
Functions do not run automatically. When the page loads, each function waits quietly
How many ways are there to call a function in a program? Explain with example.
Expert system is that system which is in some limited sense, can replace an expert.
return c ;
}
sum = add( 2, 4 ) ;
document.write( sum ) ;




 Elaborate the ‘+ ’ operator and its constraints with the help of examples.

The + Operator Used on Strings. The + operator can also be used to add string variables
or text values together. To add two or more string variables together, use the + operator.

Example:

txt1="What a very";
txt2="nice day";
txt3=txt1+txt2;
Now txt3 will be having this value "What a very nice day".
txt3=txt1+txt2; this statement due to + sign.


Question No: 40 ( Marks: 10 )
Write a JavaScript program having two functions sum and mean.
The web page will ask the user to enter five values to be added.
After taking input it will calculate the sum and mean of those values by calling sumand mean functions.


Question No: 41 ( Marks: 10 )


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.

Question No: 27 ( Marks: 1 )
What BIOS stands for?

 BIOS stand for Basic input/output system.



Question No: 28 ( Marks: 1 )
List down the Analytical Engine's components name (any two)


Input
Memory
Processor
Output.

Question No: 29 ( Marks: 2 )
Why uploading a web page is important? Describe in 2 – 3 lines.
web browsers. 

Question No: 30 ( Marks: 3 ) 
example of both.
perform one function for that its design.
Example:
Microprocessor:
Microcontroller:
Differentiate uni-Processor OS from Multi-Processor OS.
JavaScript shares many similarities with object-oriented languages, and therefore is
called an object-based language.

Why do we call JavaScript an Object-based Language?
processor OS’es can control computers having multiple uPs, at times 1000’s of them. 

Question No: 32 (Marks: 5)
Uni-processor OS’es is designed to schedule tasks on a single uP only whereas MultiQuestion 


No: 31 ( Marks: 5 )
Pentium 4 & Personal Computer. 

Electrical device, washing machines, microwave ovens, telephones etc.
processing of data and information present in a computer, while microcontroller can only
The microprocessor is electronic equipment which can perform several functions and also
What is the difference between microprocessors and microcontrollers? Give one
what we have loaded. Upload means make available our data or information for the worldBy only uploading webpage we could place our information so that other can reach up to 

Question No: 31 (Marks: 1)
When does recursion occur?

Question No: 32 (Marks: 1)
What are the types of computer network according to the distance between nodes?

There are two types of networks.

1. LAN (Local Area Network)



2. WAN (Wide Area Network)
Question No: 33 (Marks: 2)

 What is meant by semantic error?
Occur when a statement executes and has an effect not intended by the programmer and
Often times occur only in unusual & infrequent circumstances.

Question No: 34 (Marks: 2)
List down the names of two array methods available in JavaScript.
1. sort( ) [sorts elements in alphabetical order].
2. reverse( ) [Reverses the order of elements].
Question No: 35 ( Marks: 3 )
How can you define a consistent web design? Why is it needed?
Question No: 36 ( Marks: 3 )
Image in HTML
Image in Javascript
Images in JavaScript can be manipulated in many ways using the built-in object Image.
Question No: 37 ( Marks: 3 )
.
1.
2. The equal sign.
3.
Question No: 38
contain?
to be transferred over the network is broken up into small packets by the sending
A packet is the smallest unit of data transmitted over a computer network. It’s a message
computer.
What is a packet in the network environment? What kind of information does it
A string consisting of JavaScript statements enclosed in double or single quotes.
(Marks: 5 )
The event handler attribute consists of three parts. Write about each of themThe identifier of the event handler.
Example: It can be used by many handlers like, onAbort, onLoad & onError
Additional properties to HTML are hspace, vspace & lowsrc.
<IMG src=URL, alt=text height=pixels width=pixels align="bottom|middle|top">
How can we include images in a web page using HTML and Java script?
good design is needed to assists the user in recovering from errors.
attain what they want as quickly as possible without spending much effort. A consistent
A consistent good designed website is generated for general public that allows users to
Each packet contains the following info:
–Sender's address
–Destination address
–Data
–Error-recovery info.

Question No: 39 ( Marks: 5 )


 Suppose we have a big project. Draw hierarchy of the people involved in the
project?

Executive Team
CEO, COO,
CMSO


Architecture
Business


Team

Technology
Development Team

Transfer
Team

Configuration

Process
Management Team


Team

Quality

Support
Assurance Team

Team

Quality

Development

Development
Development

Team C

Team D
Team A

Development

Team B



Question No: 40 ( Marks: 10 )
Write down HTML and JavaScript code for the following requirements:

Declare an Array with the identifier SUBJECT having length 5. Assign following values
to the array elements:
MIS, Java, Algorithms, Databases, C++
Show all values in reverse order.


Question No: 41 ( Marks: 10 )
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:

1. User commences the IM client.
2. IM client finds the IM server & logs in.
3. It launches communication info (IP address, etc) to the IM server.
4. IM server finds user’s contacts & sends him/her the communication info.
5. IM server also notifies the contacts that the user is online; sends his/her
communication info to them.
6. The user’s & the contact’s IM clients are ready to communicate directly (P2P).
7. As new contact has come online, IM server informs them about the user being
online & vice versa.

8. Multiple, real-time chat are possible.
9. When the user logs-off, his/her IM client informs the IM server.
10. IM server wipes away the temporary file and informs the user’s contact’s about
his/her ‘offline’ status.
Question No: 5 ( Marks: 10 )
What kind of operations takes place inside Microprocessors Building Blocks? Enlist
them with brief description.


Bus Interface Unit: The bus interface unit is the part of the processor that interfaces with
the rest of the PC. Its name comes from the fact that it deals with moving information
over the processor data bus.

Instruction Decoder: The instruction decoder of a processor is a combinatorial circuit
sometimes in the form of a read-only memory, sometimes in the form of an ordinary
combinatorial circuit.


Arithmetic & Logic Unit (ALU): An arithmetic and logical unit (ALU) also known as
“Integer Unit” is one of the core components of all central processing units. It is capable
of calculating the results of a wide variety of common computations.

Floating-Point Unit (FPU): A floating point unit (FPU) is a part of a CPU specially
designed to carry out operations on floating point numbers.

Registers: A register is a device for storing data. It is a small amount of
access to commonly used values.
Control Unit: A control unit is the part of a CPU or other device that directs its
Instruction Set:
and can execute. It is the only language microprocessor knows.
Question No: 7 ( Marks: 8 )
SMTP (Simple Mail Transfer
accounts) containing all received by a user. eMail client interacts with the
marks)
A DBMS takes care of the storage, retrieval, and management of large data sets on a
manner.
Whereas in Flat-file database the text file format makes it hard to search for specific
Database. It provides SW tools needed to organize & manipulate that data in a flexible
b) How can you justify that a DBMS is better to use than Flat-file database? (5
messages
POP3 server for discovering and downloading new eMail messages.
used for receiving eMail messages. A POP3 server maintains text files (one file per user
messages over a TCP/IP network. Whereas POP3 (Post Office Protocol) is a protocol
Protocol) is a protocol used to send and receive eMail
a) Differentiate between SMTP and POP3 server. (3 marks)
This is the set of machine instructions that a microprocessor recognizes
operation. The outputs of the unit control the activity of the rest of the device.
very fast
computer memory used to speed the execution of computer programs by providing quick
information or to create reports that include only certain fields from each record.

Question No: 8 ( Marks: 8 )
What will be the output of this programme? Write comments where you find “//”
symbol in the following code.


<html>
<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”);

Question No: 9 ( Marks: 8 )
a) How Trojan Horses and Worms affect a computer system? What guidelines


should be adopted to troubleshoot with malicious software? (6 marks)

Trojan horses are stand-alone programs. The look like what they are not and appear to be
something interesting and harmless (e.g. a game) there execution results in destruction.
Worms only make copies of themselves on the infected computer.
Following guidelines should be adopted to troubleshoot with malicious software:


• Download SW from trusted sites only.
• Do not open attachments of unsolicited eMails.
• Use floppy disks and CDROMs that have been used in trusted computers only.
• When transferring files from your computer to another, use the write-protectionnotches.
• Stay away from pirated SW.
• Regularly back your data up.
• Install Antivirus SW; keep it and its virus definitions updated.
b) Which part of a virus consists of malicious computer instructions? (2 marks)

Payload is the part of virus that generally consists of malicious computer instructions.

Question No: 31 ( Marks: 1 )
What is the function of Network Interface Card?

NIC is an I/O device that plugs into the computer and it enables it to communicate over a
network.

Question No: 32 (Marks: 1)
In programming, what is a loop?
 



A loop is a programming language statement which allows code to be repeatedly
executed.

Question No: 33 (Marks: 2)
What is an intelligent system?

Intelligent system is a SW programs or SW/HW systems designed to perform complex
tasks employing strategies that mimic some aspect of human thought.

Question No: 34 (Marks: 2 )
Why hub is used in networks?
Hub is networking equipment and a device which connects several computers to form a
them and forwards them to all computers connected to it.
Question No: 35 ( Marks: 3 )
What are Trojan Horses?
their execution result in destruction.
Question No: 36 (Marks: 3)
retain their identity after they are drawn. These objects can later be easily moved,
(Marks: 3)
A consistent web design should be the one that achieves the result that it was designed
Question No: 37
How can you define a consistent web design? Why is it needed?
for, that result can only be achieved by giving the user what he wants, as quickly as
Examples: swf, svg, wmf, ps.
stretched, duplicated, deleted, etc
They are resolution independent and relatively small file size.
Vector or Object-Oriented Graphics treats everything that is drawn as an object. Objects
Elaborate with examples Vector or Object oriented graphics.
are not. They appear to be something interesting and harmless (e.g. a game) but when
Trojan Horses are unlike viruses, they are stand-alone programs. The look like what they
network. In a network the NIC translates the message into electrical pulses suitable for
the computer network in use & transmits it to the hub through the cable. The hub receives
possible, without her/him expending much effort. One definition of usability: Let the user
have what he wants, quickly, without much effort “Quickly” is important!

Question No: 39 (Marks: 5)
What are the advantages of multimedia presentations? Write any five.

Following are the advantages of multimedia presentations:

· Great tool for effectively communicating ideas to an audience
· All electronic
· Easy to make last minute changes
· The undo feature encourages experimentation
· More attractive; commanded more interest
· May include animations, sound, video
· Easy to catalog, store, and recall
· Great tool for making presenter-free interactive material (e.g. self-learning tutorials)

Question No: 41 (Marks: 10)

 How virtual communities are formed? How these are different from other
communities? Give examples.

Virtual Communities are interest-based communities. Members with common interest
share ideas, ask questions, post answers and make announcements through mailing-lists,
news groups or message boards. This is how they are formed. These communities are
There
within
definitely very different from traditional ones. are generally no bars on
membership based on gender, race or religion. However, they may lack the respect for
the individual and civility that are the norm conventional, geography-based
communities.



CS101
PAPER February 20, 2011

1- Layout of presentation.
2- Trojan Horses
3- Good Programming methodology
4- Saddest aspect of Computer games
5- Old profession, almost eliminated by computer
6- Global vs Universal access of Internet

Paper#02

1. Write short notes on following (10 marks)
a. Uploading of an image
b. Animated gifs
2. Write a note on other virus like programs (10)
3. What is holographic storage (2)
4. What is semantic web how it is different from normal web (3)
5. Write types of computer networks (2)
6. What is in-line JavaScript event handling? (2)
7. What are structured vector graphics? (3)
8. Write output of following (5)
a. Document.write(10+7);
b. Document.write(“100”+”4.5”);
c. Document.write(15+”3.5”);
d. Document.write(“True”+False);
e. Document.write(“False”+8%);

Note: Most of the MCQs were from past papers.

Paper#03
Why we use string functions in JavaScript?
Explain function arguments with the help of an example?
Write the steps to sort an un-sorted list.
Discuss any two situations which show non-ethical behavior?
. Define the anchor tag with the help of example.
What are Trojan Horses ?
What Is the resturction to use in line in a function
Define anchor tag
Write down three advantages of using Functions in a program.
In JavaScript, what is event handling? What are the two types of events?
What is the mistake in the following coding
Student=new array(10)

Paper#04
Write the names of DOS attack. 2Marks

Write html format to include GIF and JPG images in webpage 2Marks

Differentiate between <td> and <tr> tags 2 Marks

Who array are implemented in java script 2 Marks

Who we can define pixel 3 marks

What is the preferred organizational structure for the organization 3Marks

Differentiate between onFocus and onBlur 3 Marks

What are three basic components of system softwere 3 Marks

Advantages and disadvantages of client-side scripting 5Marks

Briefly describe for layout of presentation 5Marks

Who many members are there in business development team? briefly describe the responsibilities and profile of their 5Marks

Explain the function of ‘+’ operator with the help of example 5 Marks

what is event handler explain. write two types of event handler
What is programming methodology
What is computer screen, explain
what is Turing Machine? explain how its works
Explain why global variable is better than local variable (question was something like that)
What is Relational Database, give two example of RDBMS
Write down the five advantages of multimedia presentation

there was one question regarding teamload, I guess it was like write down the responsibilities of team load

Paper#05
WHy we use javascript?
write names of phases of DoS attack.
Errors occur in developing program? write names
in which situation we use inline event handling?
what are the properties , method and event handling of image java script?
write names of 5 key characteristics of internet?
A
B = A'.B' + A'.B wrong or right? prove it by truth table..
why we use string function in javascript?
What is the mistake in the following coding
student=new array(10)
Local and global variable?

Paper#06
what is URL?
what are the qualities of a presentation?
what is FTP?
what is IT its fields?
difference between database and DBMS?
whats the function of print preview?

Paper#07
what is database??? (2)
what is trojan horse??? (3)
flow chart is a form of algorithem....explain???? (2)
what is program methodology>??? (2)
3D rendering??? (2)
what do u mean by FTP???? (3)
user requirements in software lifestyle??? (3)
who is computer professional??? (3)
what are ordered lists??? give codes with tabular representation??? (5)
duty n profit for an architect?? (5)
function arguments??? (5)
aik java ki coding ka tha,,,,, (5)...[wo yaad nahi]

Paper#08
Who is Ada?
Suppose we have a big project. Draw hierarchy of the people involved in the project?
What is Robotics? How Robots making our daily and industrial life easy?
What is an Array?
What is the difference between Internet and Intranet?
Why the quality of image in dithering scheme is not good?
What kind of new jobs are created because of computing?
And which old professions are being eliminated?
What are Logic- or Time-Bombs ?
What is output of the following JavaScript code ?
Str=”Virtual University of Pakistan”;
document.write(str.substring(5,str.length)) ;

Paper#09
List down the names of processors. any four from different
manufacturors. 2 mark
2. Define the term 3D. 2 marks
3. In javascript what is event handeling? What are the two types of
event? 2 marks
4. Define key weakness of web? 2 marks
5. Define prefered organizational structure for the organization? 3 marks
6. Differentiate onFocus and onBlur? 3 marks
7. Three types of operations performed by microprocessors? 3 marks
8. Thrre file formates of graphics? 3 marks
9. Impact of web on our society and business? 5 marks
10. Advantages of multimedia presentation. any five. 5 marks
11. can a human doctor be replaced by an expert system? give reasons
to support your answer. 5 marks
12. Describe the responsibilities and profile of team lead? 5 marks

Paper#10
26 MCQS OF 1 MARKS AND REMAINING QUESTIONS ARE FOLLOWING
Briefly describe the guideline for layout of presentation (5 marks)
Discuss any two situations which shows non-ethical behavior (5marks)
list any five issues of data management (5marks)
What are Logics- Or Time Bombing (3 marks)
Briefly mention any 3 problems in old Mods of Presentation ( 3 marks)
Explain how many ways business monitor employee ( 3 marks)
Why we need Array In Java (2 marks)
Which language is case sensitive in htlm or javascript give any example (2 makrs)
Define the weakness of the web ( 2 marks)
What is intelligent System (2 marks)

Paper#11

Q1:What is Internet? (2)
Q2:what is intelligent system?(2)
Q3:How could you define a readable program?(2)
Q4:What is a parent of Internet?(2)
Q5:How can we define pixel?(3)
Q6:What kind of new jobs are create because of computing?& which of old profession are being eliminated ?
Q7: What are sub categories of artificial intelligence? Explain any two (3)
Q8:What is HTTP?(3)
Q9:What is impact of web on our society & business?(5)
Q10:Can a human doctor be replaced by an expert system. Give reason to support your answer?(5)
Q11:What is animation? & what is tweening process in animation?(5)
Q12:Briefly describe the responsibilities & profile of a project manager?(5)

My Current paper of cs101….


Question no 1:
For what purpose ftp is used in networks? 2 marks

Question no 2:
What is data normalization? Also define its goals. 2 marks

Question no 3:
How can u define a readable program? 2 marks

Question no 4:
What is the saddest aspect of computers games? 2 marks

Question no 5:
Who is computing professionals? 3 marks

Question no 6:
Write down three advantages of using function in program? 3 marks.

Questions no 7:
What are the sub categories of artificial intelligence? Briefly explain two of them. 3 marks

Question no 8:
What are the key advantages of internet? Write any five. 5 marks.
Question no 9:
List any five issue of data management? 5 marks
Question no 10:
Define ethics and its impact on our life with an example. ? 5 marks.

No comments: