Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS101 Solved Subjective paper Midterm File November 2011
#1
CS101 Solved Subjective Part Midterm





Question No: 31 ( Marks: 1 )

What does TCP/IP stand for?

Transmission Control Protocol

Question No: 32 ( Marks: 1 )

Why there is a need to use primary key in database ?

Primary Key is a field that uniquely identifies each record stored in a table

Question No: 33 ( Marks: 2 )

What is image processing ?

Image Processing:

A branch of computer science concerned with manipulating and enhancing computer

graphics

Question No: 34 ( Marks: 2 )

Define testing with respect to programming..

Testing: The tasks performed to determine the existence of defects

Question No: 35 ( Marks: 3 )

How can we define a computer screen?



Question No: 36 ( Marks: 3 )

What is difference between Design and System Architecture?

System

A collection of elements which working together produces a result not achieved by

the things alone

System Architecture

The structure

(in terms of components, connections, constraints) of a product or a process

Question No: 37 ( Marks: 3 )

Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output.



a = 236.2363611111556;

b = a.toString( ) ;

decimalPos = b.indexOf( ".", 0 ) ;

c = b.substring( 0, decimalPos + 3 ) ;

document.write( c ) ;



Question No: 38 ( Marks: 5 )

Show output of the following code:



for (i=0; i<=10; i++)

{

document.write("The number is " + i);

document.write("<br />");

}



Question No: 39 ( Marks: 5 )

What is a Relational Database? Give the names of any three RDBMS software. (2+3)

Relational Databases

• Databases consisting of two or more related tables are called relational databases

• A typical relational database may have anywhere from 10 to over a thousand tables

• Each column of those tables can contain only a single type of data (contrast this

with spreadsheet columns!)

• Table rows are called records; row elements are called fields

• A relational database stores all its data inside tables, and nowhere else

• All operations on data are done on those tables or those that are generated by table

operations

• Tables, tables, and nothing but tables!

RDBMS

• Relational DBMS software

• Contains facilities for creating, populating, modifying, and querying relational

databases

• Examples:

–Access

–FileMaker Pro

–SQL Server

–Oracle

Question No: 40 ( Marks: 10 )

Define the following terms.

* Object



* Event Handler
* Local Variable
* Scope of Variable
* Array

Object

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



Question No: 27 ( Marks: 1 )

What is the Brute Force Strategy?



Answer:. A staretegy in which all possible combinations are examined and best among them is selected. Brute force (also known as brute force cracking) is a trial and error method used by application programs to decode encrypted data such as passwords or Data Encryption Standard (DES) keys, through exhaustive effort (using brute force) rather than employing intellectual strategies.





Question No: 28 ( Marks: 1 )

What is java script?



Answer: JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications.

It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites





Question No: 29 ( Marks: 2 )

How can you explain control unit?



Answer: Control unit is a computerized part of the speech processor. Most of the controls, such as program, volume and sensitivity, are located on the control unit.



Question No: 30 ( Marks: 3 )

How a designer makes Structured Design?



Answer: Structured Design: Materials and member type, size, and configuration to carry loads in a safe and serviceable fashion.

In general, structural design implies the engineering of stationary objects such as buildings and bridges, or objects that may be mobile but have a rigid shape such as ship hulls and aircraft frames tructural design involves at least five distinct phases of work, project requirements, materials, structural scheme, analysis, and design

It is insufficient in most cases, for the designer to consider a solution, a design. He should evaluate several alternate designs and choose the best in the sense of maximizing such technical objectives as efficiency, reliability, and maintainability while satisfying such design constraints as memory size and response time.



Question No: 31 ( Marks: 5 )

What is Turing machine? Who invented it and also explain how a Turing test is conducted?



Answer: A Turing machine is a theoretical device that manipulates symbols contained on a strip of tape. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside of a computer. The "Turing" machine was designed by Alan Turing in 1937.

The Turing test is a proposal for a test of a machine's ability to demonstrate intelligence. It proceeds as follows a human judge engages in a natural language conversation with one human and one machine, each of which tries to appear human. All participants are placed in isolated locations. If the judge cannot reliably tell the machine from the human, the machine is said to have passed the test. In order to test the machine's intelligence rather than its ability to render words into audio, the conversation is limited to a text-only channel such as a computer keyboard and screen.

If a computer pass the test ,we can say that a machine can think.





Question No: 32 ( Marks: 5 )

What are JavaScript literal and what are its types?



Answer: The raw data that make up the root of data types are called "literals." These are, in effect, literally what they represent themselves to be. Numbers, strings, and Boolean values make up the core set of literals in JavaScript. Little mystery exists with literals, but important differences exist between them. In JavaScript, data types include strings, which are simply quoted characters, numbers, Boolean, Objects and even a type which has no value at all, Null. Since JavaScript is a loosely typed language, you don't neccessarily need to know what type of data every value is (although it certainly helps).

Every piece of data in these categories is known as a value. When a value is referred to outright in a statement, it is called a literal value. For the same reason people are identified by names as opposed to "human" or "person", literal values can be named in order to make repeated reference to them practical, efficent and readable. These names are called variables.



Literals can be of several types. Some of them are:

Array Literals

Boolean Literals

Floating-Point Literals

Integers

Object Literals

String Literals



Question No: 27 ( Marks: 1 )

Define URL

URL(Uniform resource locator)

URL (Uniform Resource Locator, previously Universal Resource Locator) - is the address of a file (resource) accessible on the Internet. The type of file or resource depends on the Internet application protocol.


0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#2
full subjective paper are in attachment


Attached Files
.doc   cs101 mid term pape 2011.doc (Size: 44 KB / Downloads: 410)

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#3
Question No: 17 ( Marks: 2 )

Write the

major types of softwares with examples?

Answer..

System SW

System software is responsible for controlling, integrating, and managing the

individual

hardware components of a computer system.

System software performs tasks like transferring data from memory to disk, or

rendering

text onto a display Specific kinds of system software include loading programs,

operating

systems, device drivers, compilers, assemblers, linkers, and utilities.

Software libraries that perform generic functions also tend to be regarded as system

software. System software stored on non-volatile storage on integrated circuits is

usually

termed firmware. These generally perform the background tasks in a computer. These

programs, many times, talk directly to the HW.

Application SW

Programs that generally interact with the user to perform work that is useful to the

user.

These programs generally talk to the HW through the assistance of system SW.

Question No: 18 ( Marks: 2 )

What is

the major difference between paragraph <p> and Line Break <BR> tags?

<P> … </P>

Paragraph

<BR>

Line break

Question No: 19 ( Marks: 2 )

Why

PASCAL was designed and what is the problem with PASCAL?

Answer,,

Pascal is very good for writing well-structured and readable programs, but it is not as

flexible as the C programming language

C++ embodies powerful object-oriented features, but it is complex and difficult to

learn

What changes in the field of computer languages can we expect in the near future

Question No: 20 ( Marks: 3 )

What are

the key requirements of E-commerce Software?

Answer..

E-Commerce Software

Key requirements:

Reliability

Security

Ability to handle 1000’s of transactions, simultaneously

Question No: 21 ( Marks: 3 )

Write

down the pseudo code for the following flow chart.

Answer…. Pseudo code

Flowcharts

Actual code

Pseudo Code

Language that is typically used for writing algorithms

Similar to a programming language, but not as rigid

The method of expression most suitable for a gi

Question No: 22 ( Marks: 5 )

(a) Write

down two positive features of client-side scripting.

Answet..

Reduced server load as it does not have to send messages to the user’s browser about

missing or incorrect data

Reduced network traffic as the form’s data is sent only once instead of many to’s and

fro’s

Question No: 17 ( Marks: 2 )

Explain briefly the different techniques that are used to embed JavaScript code in a

web page?

Answer., Client-side JavaScript code is embedded within HTML documents in a

number of ways:

* • Between a pair of <script> and </script> tags
* • From an external file specified by the src attribute of a <script> tag
* • In an event handler, specified as the value of an HTML attribute such as onclick

or onmouseover

* • As the body of a URL that uses the special javascript: protocol

The following sections document each of these JavaScript embedding techniques in

more detail. Together, they explain all the ways to include JavaScript in web pages --

that is, they explain the allowed structure of JavaScript programs on the client side.

Question No: 18 ( Marks: 2 )

What is an interpreter? Write its one benifit over compiler.

Answere

Interpreter is a program that executes instructions written in a high-level language

An interpreter translates high-level instructions into an intermediate form, which it

then

executes. In contrast, a compiler translates high-level instructions directly into

machine

language

Compiled programs generally run faster than interpreted programs.

compilation stage during which the whole of the high-level code is translated into

machine instructions in one go. This process can be time-consuming if the program is

long.

The interpreter can immediately execute high-level programs, without waiting for the

completion of the translation process

The choice of which language to use can also depend on the:

-Type of computer the program is to run on,

- Expertise of the programmer

Interpreters: immediate response, but execute code slowly.

Compilers: Takes longer to compile, but super-fast execution.

Question No: 19 ( Marks: 2 )

Whether response time of a microprocessor is greater or less than that of RAM?

A microprocessor incorporates most or all of the functions of a computer's central

processing unit (CPU) on a single integrated circuit (IC, or microchipThe first

microprocessors emerged in the early 1970s and were used for electronic calculators,

using binary-coded decimal (BCD) arithmetic in 4-bit words. Other embedded uses of

4-bit and 8-bit microprocessors, such as terminals, printers, various kinds of

automation etc, followed soon after. Affordable 8-bit microprocessors with 16-bit

addressing also led to the first general-purpose microcomputers from the mid-1970s

on.

During the 1960's, computer processors were often constructed out of small and

medium-scale ICs containing from tens to a few hundred transistors. The integration

of a whole CPU onto a single chip greatly reduced the cost of processing power. From

these humble beginnings, continued increases in microprocessor capacity have

rendered other forms of computers almost completely obsolete (see history of

computing hardware), with one or more microprocessors used in everything from the

smallest embedded systems and handheld devices to the largest mainframes and

supercomputers.

Since the early 1970s, the increase in capacity of microprocessors has been a

consequence of Moore's Law, which suggests that the complexity of an integrated

circuit, with respect to minimum component cost, doubles every two years

In the late 1990s, and in the high-performance microprocessor segment, heat

generation (TDP), due to switching losses, static current leakage, and other factors,

emerged as a leading developmental constraint

Question No: 20 ( Marks: 3 )

Write formula for the following expression.

1) If we want to add the value from cell C3 to C10 we can write

2) If we want to add the value of C2 to the value of C4 and than multiply by

C6 , the formula is written for

1.answer formula

=sum(c3:c10) then enter

=(c2+c10Xc6) then enter

Question No: 21 ( Marks: 3 )

How can we enter data in more than one line in an html form?

Question No: 22 ( Marks: 5 )

What is software life cycle?

SW Life-Cycle

The sequence of phases a SW goes through from the concept to decommissioning

It is important to think about all those phases before the design work starts

Thinking about the future phases generally results in:

Shorter delivery times

Reduced costs of development

A system of higher quality

A Case in Point

I didn’t discuss with the customer the specs of the HW & OS before developing a

particular e-commerce SW.

I wrote it for the HW/OS that was easily available to me.

Unfortunately that HW/OS combination differed from what was easily available to

the

client Result: Huge amount of rework. Higher cost. Delayed delivery. Lower quality.

Therefore, now before designing a SW system, I first write down the installation

manual,

and get it OK’d by the customer. I do the same with the Operation & Maintenance

manual as well.

Question No: 23 ( Marks: 5 )

Elaborate greedy algorithm definition with solid example in favour and one counter

example?

An algorithm that always takes the best immediate, or local solution while finding an

answer

Greedy algorithms may find the overall or globally optimal solution for some

optimization problems, but may find less-than-optimal solutions for some instances of

other problems

KEY ADVANTAGE: Greedy algorithms are usually faster, since they don't consider

the

details of possible alternatives

Greedy Algorithm: Counter Example

During one of the international cricket tournaments, one of the teams intentionally

lost a

match, so that they could qualify for the next round

If they had won that particular match, some other team would have qualified

This is an example of a non-greedy algorithm

Greedy Algorithm: Example

A skier skiing downhill on a mountain wants to get to the bottom as quickly as

possible

What sort of an algorithm should the skier be using?

The greedy-algorithm approach will be to always have the skies pointed towards the

largest downhill slope (dy/dx), at all times

What is the problem with that approach?

In what situations that will be the best algorithm?

In which situations would it perform poorly?


0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#4
How can you post the exam online already? Anyway mines next week, do you think it'll be the same? Btw i'd appreciate it if you reply. Thanks =)
Reply
#5
yah might be same 50 to 70 percent.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  it430 mid term subjective paper fall December 2011 Vuhelper 1 4,826 11-17-2014, 03:21 AM
Last Post: Xpert
  ECO401 mid term current paper subjective fall 2011 Vuhelper 2 3,840 05-21-2014, 05:15 PM
Last Post: vu-drama
  FIN 625 Current Midterm papers Dated 25-05-2013 to 5-06-2013 mirugs 1 2,405 05-30-2013, 04:21 AM
Last Post: Vuhelper
  FIN 625 Current Midterm papers Dated 25-05-2013 to 5-06-2013 mirugs 0 2,941 05-30-2013, 03:29 AM
Last Post: mirugs
  ECO401 Economics Solve Mid Term Paper Fall Semester December 2012 Vuhelper 0 5,017 11-27-2012, 04:38 PM
Last Post: Vuhelper
  fin621 mid term current paper fall 4 December 2011 Vuhelper 2 3,184 05-02-2012, 11:53 PM
Last Post: Vuhelper
  CS605_Software Engineering II mid term mcqz paper December 2011 Vuhelper 0 2,523 12-09-2011, 11:01 PM
Last Post: Vuhelper
  eng201 mid term current paper December 2011 Vuhelper 0 3,431 12-09-2011, 10:58 PM
Last Post: Vuhelper
  STA630 Midterm paper December 2011 Vuhelper 0 2,784 12-09-2011, 10:45 PM
Last Post: Vuhelper
  HRM624 current mid term subjective paper December 2011 Vuhelper 0 2,934 12-09-2011, 10:43 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)