CS101 Subjective Past Paper - Part 2
CS101 Past Paper Question No: 31 (M - 1)
What is heuristic?
Heuristic is a procedure that usually, but not always, works or that gives nearly the right answer.
CS101 Past Paper Question No: 32 (M - 1)
In programming, what is an object?
Object is a named collection of properties (data, state) & methods (instructions, behavior).
CS101 Past Paper Question No: 33 (M - 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 it easy to display information, and people can insert
formulas to work with the data.
Electronic replacement for ledgers
Charts
Financial-forecasting.
CS101 Past Paper Question No: 34 (M - 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.
CS101 Past Paper Question No: 35 ( M - 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.
CS101 Past Paper Question No: 36 ( M - 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.
CS101 Past Paper Question No: 37 ( M - 3 )
What are the Sub categories of Artificial Intelligence? Briefly explain any two.
1. Expert systems:
Expert system is that system which is in some limited sense, can replace an expert.
2. Robotics:
Robotics is an automatic machine that performs various tasks that were previously done by humans.
CS101 Past Paper Question No: 38 ( M - 5 )
How many ways are there to call a function in a program? Explain with example.
Two Ways of Calling Functions:
Functions do not run automatically. When the page loads, each function waits quietly until it is told to run.
1. A function calls appearing as a complete statement:
function popUp( message ) {
window.alert( message ) ;
}
popUp( “Warning!” ) ;
2. A function calls appearing as part of a statement. Definitions of such functions include a ‘return’ statement:
function add( a, b ) {
c = a + b ;
return c ;
}
sum = add( 2, 4 ) ;
document.write( sum ) ;
CS101 Past Paper Question No: 39 ( M - 5 )
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.
CS101 Past Paper Question No: 40 ( M - 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 sum and mean functions.
CS101 Past Paper Question No: 41 ( M - 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.
CS101 Past Paper Question No: 27 ( M - 1 )
What BIOS stands for?
BIOS stand for Basic input/output system.
CS101 Past Paper Question No: 28 ( M - 1 )
List down the Analytical Engine's components name (any two)
Input
Memory
Processor
Output.Question No: 29 ( M - 2 )
Why uploading a web page is important? Describe in 2 – 3 lines.
By only uploading webpage we
could place our information so that other can reach up to what we have
loaded. Upload means make available our data or information for the
world web browsers.CS101 Past Paper Question No: 30 ( M - 3 )
What is the difference between microprocessors and microcontrollers? Give one example of both.
The
microprocessor is electronic equipment which can perform several
functions and also processing of data and information present in a
computer, while microcontroller can only perform one function for that
its design. Example:
Microprocessor: Pentium 4 & Personal Computer.
Microcontroller: Electrical device, washing machines, microwave ovens, telephones etc.
CS101 Past Paper Question No: 31 ( M - 5 )
Differentiate uni-Processor OS from Multi-Processor OS.
Uni-processor OS’es is designed to
schedule tasks on a single uP only whereas Multi-processor OS’es can
control computers having multiple uPs, at times 1000’s of them.
CS101 Past Paper Question No: 32 (M - 5)
Why do we call JavaScript an Object-based Language?
JavaScript shares many similarities with object-oriented languages, and therefore is called an object-based language.
CS101 Past Paper Question No: 31 (M - 1)
When does recursion occur?
CS101 Past Paper Question No: 32 (M - 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)
CS101 Past Paper Question No: 33 (M - 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.
CS101 Past Paper Question No: 34 (M - 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].
CS101 Past Paper Question No: 35 ( M - 3 )
How can you define a consistent web design? Why is it needed?
A consistent good designed website
is generated for general public that allows users to attain what they
want as quickly as possible without spending much effort. A consistent good design is needed to assists the user in recovering from errors.
CS101 Past Paper Question No: 36 ( M - 3 )
How can we include images in a web page using HTML and Java script?
Image in HTML
<IMG src=URL, alt=text height=pixels width=pixels align="bottom|middle|top">
Image in Javascript
Images in JavaScript can be manipulated in many ways using the built-in object Image.
Additional properties to HTML are hspace, vspace & lowsrc.
Example: It can be used by many handlers like, onAbort, onLoad & onError
CS101 Past Paper Question No: 37 ( M - 3 )
The event handler attribute consists of three parts. Write about each of them.
1. The identifier of the event handler.
2. The equal sign.
3. A string consisting of JavaScript statements enclosed in double or single quotes.
CS101 Past Paper Question No: 38 (M - 5 )
What is a packet in the network environment? What kind of information does it contain?
A packet is the smallest unit of data
transmitted over a computer network. It’s a message to be transferred
over the network is broken up into small packets by the sending
computer.
Each packet contains the following info:
–Sender's address
–Destination address
–Data
–Error-recovery info.
CS101 Past Paper Question No: 39 ( M - 5 )
Suppose we have a big project. Draw hierarchy of the people involved in the project?
What is Object in JavaScript ?
Solution:-
Everything that JavaScript manipulates, it treats as an object – e.g. a window or a button
An object has properties – e.g. a window has size, position, status,
CS101 Past Paper Q28
Write one purpose of using spreadsheets?
Solution:-
Electronic
replacement for ledgers, Used for automating engineering, scientific,
but in majority of cases, business calculations, A spreadsheet -
VisiCalc - was the first popular application on PC’s. It helped in
popularizing PC’s by making the task of financial-forecasting much
simpler, allowing individuals to do forecasts which previously were
performed by a whole team of financial wizard
CS101 Past Paper Q29