In the name of ALLAH, the most beneficient, the most merciful

Introduction to Computing (CS101)

Subjective, Short Questions from Past Papers

 

Subjective Questions

Question

(Final Term, Marks = , Lesson No. )

For what purpose FTP is used in network?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Define key weakness of the web?

Answer:

Question

(Final Term, Marks = , Lesson No. )

What are distinct features of computers?

Answer:

Question

(Final Term, Marks = , Lesson No. )

How would you briefly explain an intelligent system?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Briefly mention any three problems in old modes of presentation development?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Differentiate deterministic and randomized algorithms?

Answer:

Question

(Final Term, Marks = , Lesson No. )

How global corporations are becoming more powerful?

Answer:

Question

(Final Term, Marks = , Lesson No. )

What are the disadvantages of a flat file database?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Why the quality of image in the dithering scheme is not good?

Answer:

Question

(Final Term, Marks = , Lesson No. )

What is main difference between Microprocessor and Microcontroller?

Answer:

Question

(Final Term, Marks = , Lesson No. )

What are other viruses like programs? Discuss any two.

Answer:

Question

(Final Term, Marks = , Lesson No. )

There may be some properties methods and event handlers of Image object in java script. If you know, write four properties, one methods and two event handlers of Image object.

Answer:

Question

(Mid Term, Marks = 5, Lesson No. 13)

What makes System Software different from Application software? Explain the attributes of good application software. Please write down the concise and to the point answer.

Answer:

Question

(Mid Term, Marks = 5, Lesson No. 11)

Draw the OS components diagram? What are the main responsibilities that Kernel plays in Operating system? Please write down in 6-7 lines max.

Answer:

Question

(Mid Term, Marks = 3, Lesson No. 7)

How you can enhance the capability of a micro processor? Write down the answer in maximum 5-6 lines.

Answer:

Question

(Mid Term, Marks = 10, Lesson No. )

Create the following page using html and javascript as shown in the image below. If someone press “Ok” (submit) button without entering “age”, it should show a message “Please enter your age”.
Options in drop down menu are

  1. Chocolate
  2. Vanilla
  3. Cherry Garcia
  4. Pizza Pancake
  5. None of the above!
CS101_0001.jpg

Answer:

Question

(Final Term, Marks = , Lesson No. )

Write down the code, to take two input numbers from user (as shown in first two figures), compare them and show results, whether they are same or not (as shown in third figure). View the given below Images very carefully and try to fulfill all requirements given in image.
(Hint: Make web page using JavaScript to Compare two numbers)
CS101_0002.jpg

CS101_0003.jpg

CS101_0004.jpg

Answer:

Question

(Final Term, Marks = , Lesson No. )

Describe the following terms?

  • FTP
  • Telnet Protocol
  • IP Address

Answer:

Question

(Final Term, Marks = , Lesson No. )

What are local variables? Compare them with global variables?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Examine the logic of following pseudo code:
initialize x to 10
initialize y to 0
initialize sum to 0
Repeat while (y <= 6)
{
Add x and y and put results into sum
decrement x by 2
increment y by 3
}
print sum
Stop

What will be the value of the variables "sum, x and y", each time after the loop is executed?

Answer:

Question

(Final Term, Marks = , Lesson No. )

Write down a JavaScript function with the name "BinConvert( )" that takes a decimal number and converts it into its equivalent binary number and displays the result in browser. Call that function in the body of the web page.

Answer:

Question

(Final Term, Marks = , Lesson No. )

What is database? Describe Data Integrity?

Answer:

Question

(Mid Term, Marks = 3, Lesson No. 19)

What do you know about structured design methodology?

Answer:

Question

(Mid Term, Marks = 3, Lesson No. 12)

Write down code for drop down list having options Cricket, Hockey and Soccer.

Answer:

Question

(Mid Term, Marks = 3, Lesson No. 17)

What are the basic steps to write pseudo code? Write any four.

Answer:

Question

(Mid Term, Marks = 10, Lesson No. 8)

a) Make truth table for the following Boolean expression z=(x XOR y).y'
b) Convert 1011 binary number to equivalent decimal number. Show each step of Conversion.

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

What do you know about Mobile Computers? Explain Briefly.

Answer:

Question

(Mid Term, Marks = 10, Lesson No. )

a) Take a look at the image of the browser screen shown below. Write down the HTML code that will produce this screen. View the given below Image very carefully and try to fulfill all requirements given in image.

CS101_0005.jpg

b) Write down a function in JavaScript that compares two inputs taken from HTML Form shown above and as a result display any one of the following message:

"First number is greater than the second" OR "Second number is greater than the first"

CS101_0006.jpgCS101_0007.jpg

Answer:

Question

(Mid Term, Marks = 5, Lesson No. 21)

What is difference between Literals, Identifiers and Variables in JavaScript? Give at least one example of each.

Answer:

Question

(Mid Term, Marks = 2, Lesson No. )

Correct the html code for Password input field:
<INPUT category="password" name="name" size="widthInCharacters">

Answer:

Question

(Mid Term, Marks = 2, Lesson No. )

Identify an object and a method in the following JavaScript statement
Window.close( )

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

An application doesn't need to know about the exact physical characteristics of the drive where it stores data. Explain its reason.

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

Write down three main parameters on which you will select a programming language to solve a particular problem?

Answer:

Question

(Mid Term, Marks = 5, Lesson No. )

Name the programming technique that is used to activate a procedure on an event occurrence. Also mention its way of working.

Answer:

Question

(Mid Term, Marks = 5, Lesson No. )

If you are asked to perform analysis of an algorithm then explain which two parameters will you consider the most important to analyze the algorithm?

Answer:

Question

(Mid Term, Marks = 2, Lesson No. )

Is it possible to run an application in the private memory space of another application?

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

How can interactive mode software be more attractive than the batch mode software?

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

List down any three benefits a software development team can get by performing proper and better testing on every stage of development.

Answer:

Question

(Mid Term, Marks = 5, Lesson No. )

When does "=" sign behave as an "assignment operator" and as an "equal to" operator in JavaScript? Give code example for each behaviour.

Answer:

Question

(Mid Term, Marks = 2, Lesson No. )

If A1 = 15, B1 = 35 and C1 = 11 then what will be the output of the following formula?
=(A1*(C1+B1/2))/100

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

Describe the applicability of Ockham's razor principle in the field of computing.

Answer:

Question

(Mid Term, Marks = 3, Lesson No. )

Mr. Ali is a developer who selected the object oriented design for the development of a system. Discuss why did he not select the structured design?

Answer:

Question

(Mid Term, Marks = 5, Lesson No. )

UNIX is better than Window operating system. Do you agree? Justify your answer with reason.

Answer:

Question

(Mid Term, Marks = 5, Lesson No. )

I want to develop a software system for an air line company, just name the steps needed to develop this system.

Answer: