Tuesday, November 30, 2010

[discussion_vu] Fwd: cs101 answers of short question







*~ WS ~*
*~ Devil Jin ~*
*
Bscs 4th Semester *



---------- Forwarded message ----------
From: MOAAZ SIDDIQ <mc100401285@vu.edu.pk>
Date: Wed, Dec 1, 2010 at 2:27 AM
Subject: .....::ll VU HELPINGHAND ll:::..... cs101 answers of short question
To: coool_vu_students@googlegroups.com, virtaul-pakistan@googlegroups.com, vumasters@googlegroups.com, vu-edu-pk@googlegroups.com, vu_helpinghand1@googlegroups.com


Short quiz

 

 

MIDTERM  EXAMINATION

Fall 2008

 

What is coding?

The process of telling the computer what to do

WYSIWYG

(What-You-See-Is-What-You-Get)

Define URL

Uniform Resource Locator

What is Deterministic Algorithm?

1st Definition:

Sequence of steps that is taken to solve a problem

Better Definition:

A precise sequence of a limited number of unambiguous, executable steps that terminates

in the form of a solution

How can we calculate total number of rows in the truth table?

 

What are JavaScript literal and what are its types?

A data value that appears directly in a statement

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

Number

String

Boolean

What is the impact of web on our Society and Business?

The Internet provides numerous opportunities for small business start-ups. Those whose work is essentially information processing or production are now able to work from the comfort of their own homes, freeing them from the drudgery of commuting and office politics. The Internet is seen as an integral part of the trend towards globalization and the diminishing significance of the concept of nation state.

Spring 2010

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

What is an interpreter? Write its one benefit over compiler

Interpreter translates the HLL program one statement at time. It reads a single

statement, translates it into machine language and passes that machine language code to

the uP and then translates the next statement, and so on

 

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

 

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

 

What is software life cycle?

The Software Lifecycle is a series of stages in the development of an application and is often used in Software Engineering.

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

 

Spring 2010

What do you mean by Comments?

Comments are included on a Web page to explain how and why you wrote the page the

way you did

Comments can help someone other than the author to follow the logic of the page in the

author's absence

How can an operating system be viewed as a resource allocator?

 

What is the role of application software in Education?

Teachers in educational institutions direct the education of students and might draw on many subjects, including reading, writing, mathematics, science and history. This process is sometimes called schooling when referring to the education of teaching only a certain subject, usually as professors at institutions of higher learning. There is also education in fields for those who want specific vocational skills, such as those required to be a pilot. In addition there is an array of education possible at the informal level, such as in museums and libraries, with the Internet and in life experience. Many non-traditional education options are now available and continue to evolve.

 

Give four  properties  and  two methods of window object ?

Objects may have a single or several properties

A property may have one of the following values:

Number -- Text -- Boolean

Array -- Functions

Objects (Example: "document" – a property of the "window" object – is an object in

itself. A "document" in turn may contain a "form" object as a property, and then that

"form" may contain a "button" property, which, once again, is an object in itself)

 

What is the difference between High-level and Low-level programming languages?

High level languages allow much more abstraction than low level languages. This allows algorithms and functions to be written without requiring detailed knowledge of the hardware used in the computing platform. The compiler provides this interface transparently for the programmer.

Low level languages will require more involvement with the actual register and interrupt interfaces to the hardware. This can provide more control and efficiency for the program and can be good for applications which need high speed execution, but high level compilers are much better at optimizing for speed now.

 

 

 

 

Spring 2010

Write the major types of softwares with examples?

System Software   os(windows )

Application Software ms word spread sheat

 

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

The "br" tag inserts a single line break into the web document.

The "p" tag defines a paragraph, but the paragraph is typically automatically given space before and after by the browser.

 

Why PASCAL was designed and what is the problem with PASCAL?

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

flexible as the C programming language

What are the key requirements of E-commerce Software?

Reliability

Security

Ability to handle 1000's of transactions, simultaneously

Write down the pseudo code for the following flow chart.

 

(a)   Write down two positive features of client-side scripting.

 

(b)  Discuss two deficiencies of JavaScript.

 

 

What are the key features of a word processor?

Probably the most popular productivity app

Initially designed as a replacement for the typewriter

Automation

Automatic end-of-line soft carriage return

Style sheets

Table of contents & index

Spelling & grammar checking

Two approaches: WYSIWYG (e.g. Word, WordPerfect, Star) or traditional markup

(LaTeX)?

Desktop publishing

 

Spring 2009

What is the key feature of batch programs?

These are typically started from a shell (or automatically via a scheduler) and tend to

follow a pattern of:

Initialize internal data

Read input data

Process that data

Print or store results

Key feature: No user interaction with the computer while the program is running

Name two languages which are used for client side scripting?

Java script –vb script

What is the purpose of MODEM ?

modem = modulator + demodulator

Modulator converts computer messages to electrical pulses that are suitable for

transmission over the telephone lines

Demodulator converts electrical pulses received over telephone lines into messages that

are comprehensible for computers

What is Home Page of a web site?

A Web site is a related collection of World Wide Web (WWW) files that includes a

beginning file called a home page

Why microprocessor uses the binary number system and not the decimal or any other number system?

Because this system is natural for digital computers

The fundamental building block of a digital computer – the switch – possesses two

natural states, ON & OFF

What is the difference between Interactive-mode and Batch-mode Application Software?

The user runs the program on the computer and keeps on interacting with the computer

while the program runs

Example: Word processor

Batch-mode

The user starts the program and the computer processes the provided data and produces

results without any further intervention of from the user

Example: Payroll

 

 

Spring 2009

What is the problem with Brute Force Strategy approach?

A strategy in which all possible combinations are examined and the best among them is

selected

What is the problem with this approach?

A: Doesn't scale well with the size of the problem

How many possible city sequences for n=6? For n=60? For n=600?

What was the name of first computer in which binary numbers were used instead of decimal numbers ?

The Atanasoff-Berry Computer was the world's first electronic digital computer. It was
built by John Vincent Atanasoff and Clifford Berry at
Iowa State University during 1937-   aaaaaahm

How can we say that JavaScript is Not Object-Oriented language?

avascript does provide a fairly easy means to inherit implementation via prototyping but this is at the expense of encapsulation.

List down the names of any three parameters on which we analyze an algorithm.

 

Write differences between Shareware and Trialware software.

Mainly the name and the fact that no large successful companies refer to their trial or demo software as "shareware". See Symantec for example. The term "shareware" is also old-fashioned and non-descriptive. The word "shareware" was coined to describe software that was obtained and then shared freely with others, usually by diskette. Today with the Internet this meaning is entirely obsolete. Plus, the reference to sharing might give people the impression that it is OK to purchase shareware and then share the registered copy with others. Trialware, on the other hand, means what it says, trial

What is function of Goal Seek command in Excel?

Goal Seek is used when you know what answer you want, but don't know the exact figure to input for that answer. For example, you're quite certain that 8 multiplied by something equals 56. You just not sure what that missing number is. Is it 8 multiplied by 6? Or Is it 8 multiplied by 7? Goal Seek will tell you the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Question No: 27    ( Marks: 1 )

 What is the key feature of batch programs?

Answer: The key feature is no user interaction with computer while a program is running.   

 

Question No: 28    ( Marks: 1 )

 Name two languages which are used for client side scripting?

Answer: Javascript , VBscript 

 

Question No: 29    ( Marks: 2 )

 What is the purpose of MODEM ?

Answer: It receive data analog signal from a phone line and then convert them into digital signal and send back to the computer with which it is attached. It also receives data from computer and convert it into analog signals.  

 

Question No: 30    ( Marks: 3 )

 What is Home Page of a web site?

Answer: For a web user it is a first page displayed when a user starts a web browser and for a web developer it is a first page when a user selects a site.

   

Question No: 31    ( Marks: 5 )

 Why microprocessor uses the binary number system and not the decimal or any other number system?

Answer: Because this system is natural for digital computer. Digital computer have fundamental building blocks like ON & OFF Etc so it is natural to represent those in a number system that has only two symbols e.g Binary Numbers 0,1. Whereas decimal system is natural for human.

 

 

 

 

 

 

 

Spring 2010

CS101- Introduction to Computing (Session - 4)

 

Question No: 17 ( Marks: 2 )

Write the major types of softwares with examples?

Software is the set of instructions which guides the computer hardware through their jobs. A

computer is useless without software. We use different software to solve different problems. The types of

software we need depend on the job we want to do.

There are basically two types of software's system software and application software. System software's

are used to help the computer parts work together and also provide support to the application software.

The most common type of system software is operating system.

Application software's are used to improve our work ability. Different application software's and system

software's are used in daily life.

Question No: 18 ( Marks: 2 )

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

<p> tag is use to Insert paragraph breaks into the text of your HTML document Note that this tag

is special in that it does not require an ending tag.

The <br> tag inserts a single line break. The <br> tag is an empty tag which means that it has no end tag.

Question No: 19 ( Marks: 2 )

Why PASCAL was designed and what is the problem with PASCAL?

Pascal was originally intended primarily as a teaching language, but it has been more and more often

recommended as a language for serious programming as well, for example, for system programming

tasks and even operating systems.

Question No: 20 ( Marks: 3 )

What are the key requirements of E-commerce Software?

There are more possible approaches depending to the specific context.

The information used for building a software system has more levels:

- Business process level (overall process of the customer business). This is the context where the future

software system will be activated

- Business needs allocated to the software system

- System features that will satisfy those business needs

- System feature details as SRS

Question No: 21 ( Marks: 3 )

Write down the pseudo code for the following flow chart.

Question No: 22 ( Marks: 5 )

(a) Write down two positive features of client-side scripting.

Client-side scripting offers an easy way to provide additional functionality and flexibility to your project.

Solved by Princess Sassi

www.vuzs.net

HTML is very limited; its main purpose is to display and format content. It allows little or no interaction

with the visitors of your site.

Scripting technologies like JavaScript, JScript, VBScript and others are used on many sites to add extra

functionality to a web site. Ranging from simple mouse over image effects, animation, form field

validation to complex dynamic menu systems, these scripts enhances the functionality and user

experience.

(b) Discuss two deficiencies of JavaScript.

Question No: 23 ( Marks: 5 )

What are the key features of a word processor?

Insert text: Allows you to insert text anywhere in the document.

delete text: Allows you to erase characters, words, lines, or pages as easily as you can cross them out on

paper.

cut and paste : Allows you to remove (cut) a section of text from one place in a document and insert

(paste) it somewhere else.

copy : Allows you to duplicate a section of text.

page size and margins : Allows you to define various page sizes and margins, and the word processor will

automatically readjust the text so that it fits.

search and replace : Allows you to direct the word processor to search for a particular word or phrase.

You can also direct the word processor to replace one group of characters with another everywhere that

the first group appears.

word wrap : The word processor automatically moves to the next line when you have filled one line with

text, and it will readjust text if you change the margins.

print: Allows you to send a document to a printer to get hardcopy.

file management : Many word processors contain file management capabilities that allow you to create,

delete, move, and search for files.

font specifications: Allows you to change fonts within a document. For example, you can specify bold,

italics, and underlining. Most word processors also let you change the font size and even the typeface.

footnotes and cross-references: Automates the numbering and placement of footnotes and enables you to

easily cross-reference other sections of the document.

graphics graphics: Allows you to embed illustrations and graphs into a document. Some word processors

let you create the illustrations within the word processor; others let you insert an illustration produced by

a different program.

headers , footers , and page numbering: Allows you to specify customized headers and footers that the

word processor will put at the top and bottom of every page. The word processor automatically keeps

track of page numbers so that the correct number appears on each page.

layout : Allows you to specify different margins within a single document and to specify various methods

for indenting paragraphs.

macros : A macro is a character or word that represents a series of keystrokes. The keystrokes can

represent text or commands. The ability to define macros allows you to save yourself a lot of time by

replacing common combinations of keystrokes.

merges: Allows you to merge text from one file into another file. This is particularly useful for generating

many files that have the same format but different data. Generating mailing labels is the classic example

of using merges.

spell checker : A utility that allows you to check the spelling of words. It will highlight any words that it

does not recognize.

tables of contents and indexes: Allows you to automatically create a table of contents and index based on

special codes that you insert in the document.



--

محب اگر خاموش رہے تو مارا جاتا ہے۔عارف اگر بولے تو مارا جاتا ہے

 (حضرت شیخ شبلی)


--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

No comments:

Post a Comment

PAID CONTENT