Friday, 24 January 2014

FINALTERM EXAMINATION Fall 2009 CS101- Introduction to Computing (Session - 2)

FINALTERM  EXAMINATION
Fall 2009
CS101- Introduction to Computing (Session - 2)
    
Question No: 1    ( Marks: 1 )    - Please choose one
  
It represents the ________________ flow chart element.

       ► Process
       ► Input or Output
       ► Decision
       ► Connector
   
Question No: 2    ( Marks: 1 )    - Please choose one
  Website design should NOT be __________.
       ► Unified
       ► Complex
       ► Consistent
       ► Predictable
   
Question No: 3    ( Marks: 1 )    - Please choose one
  The most upper right pixel of the screen is of ___________ color.
       ► Any
       ► Red
       ► Green
       ► Blue
   
Question No: 4    ( Marks: 1 )    - Please choose one
  Which of the following is NOT an example of Multi-user Operating system

       ► Windows
       ► Linux
       ► DOS
       ► Solaris
   
Question No: 5    ( Marks: 1 )    - Please choose one
  According to the heuristic, the number of defects remaining in a system after a given level of tests is proportional to ___________.
       ► The number found on very first day.
       ► The number found during the development.
       ► The number found during the test.
       ► None of the given options.
   
Question No: 6    ( Marks: 1 )    - Please choose one
  Which one of the following is NOT a component of Rule Based System?
       ► Rule Compiler
       ► Rule Interpreter
       ► Rules Base
       ► Working Memory
   
Question No: 7    ( Marks: 1 )    - Please choose one
  In RDBMS, table rows are called __________.
       ► Field
       ► Record
       ► Column
       ► Query
   
Question No: 8    ( Marks: 1 )    - Please choose one
  _________ can be used for entering, editing, or viewing data, one record at a time.
       ► Queries
       ► Forms
       ► Reports
       ► None of the given options
   
Question No: 9    ( Marks: 1 )    - Please choose one
  Tribal flood network is a ___________ software.
       ► DoS
       ► Scanning
       ► Utility
       ► None of the given options
   
Question No: 10    ( Marks: 1 )    - Please choose one
  Unlike virus, ___________ is a stand-alone program.
       ► Trojan horse
       ► Logic bomb
       ► Worm
       ► Time bomb
   
Question No: 11    ( Marks: 1 )    - Please choose one
  The key responsibilities of a project manager is _____________.
       ► Planning and tracking of the project
       ► Arranging of the appropriate resources
       ► Client relationship management
       ► All of the given options
   
Question No: 12    ( Marks: 1 )    - Please choose one
  The key responsibilities of the architect of the project is______________.
       ► Technology selection
       ► High-level design
       ► Makes certain that the implementation remains true to the design
       ► All of the given options
   
Question No: 13    ( Marks: 1 )    - Please choose one
  _______________ is responsible for day to day operations.
       ► CEO
       ► COO
       ► CMSO
       ► Developer
   
Question No: 14    ( Marks: 1 )    - Please choose one
  onAbort , onError are the _______________ of the image object.
       ► Event Handler
       ► Properties
       ► Methods
       ► None of the given options
   
Question No: 15    ( Marks: 1 )    - Please choose one
  The tasks performed to detect the exact location of defect is called______

       ► Debugging
       ► Testing
       ► Repairing
       ► Monitoring
   
Question No: 16    ( Marks: 1 )    - Please choose one
  _____________ routes the packets through the internet to go to their destination.

       ► Protocol
       ► TCP
       ► IP
       ► NIC
   
Question No: 17    ( Marks: 1 )    - Please choose one
  When we buy a software package, we do not really buy it, we just by a license that allows us to use it, the ___________stays with the maker.

       ► Agreement
       ► Ownership
       ► Membership
       ► Software
   
Question No: 18    ( Marks: 1 )    - Please choose one
  Sequence of steps that is taken to solve a problem is called _______.

       ► Algorithm
       ► Operating System
       ► Application software
       ► None of the given options
   
Question No: 19    ( Marks: 1 )    - Please choose one
  A collection of data organized in such a way that the computer can quickly search for a desired data item is known as :
       ► Retrieving
       ► Database
       ► Information
       ► DBMS
   
Question No: 20    ( Marks: 1 )    - Please choose one
  To start an ordered list from 20 instead of 1, we will write

       ► <OL begin = “20">
       ► <OL initiate = “20">

       ► <OL start = “20">
       ► <OL from = “20">
   
Question No: 21    ( Marks: 1 )    - Please choose one
  ______ are personal computers that are designed to be easily transported and relocated.
       ► Desktops
       ► Portables
       ► Servers
       ► Workstations
   
Question No: 22    ( Marks: 1 )    - Please choose one
  To display a multi-line text area on the web page, we use ___ tag
       ► TEXT
       ► TEXTAREA
       ► INPUT
       ► INPUTAREA
   
Question No: 23    ( Marks: 1 )    - Please choose one
  The first component of an operating system that runs when a typical computer is turned ON, is:
       ► Device Manager
       ► File Manager
       ► Loader
       ► Device Driver
   
Question No: 24    ( Marks: 1 )    - Please choose one
  Pseudo code is written in
       ► Complex grammar
       ► Plain English
       ► JAVA
       ► Pseudo language
   
Question No: 25    ( Marks: 1 )    - Please choose one
  Instead of Full System, one can _____ results from part of a System
       ► Not achieve
       ► Mostly achieve
       ► Sometimes achieve
       ► Achieve
   
Question No: 26    ( Marks: 1 )    - Please choose one
  One can download or upload files to a remote computer using ________ protocol.
       ► HTTP
       ► SMTP
       ► FTP
       ► TELNET
   
Question No: 27    ( Marks: 1 )    - Please choose one
  Which protocol is used to control other computer from our own computer ?
       ► FTP
       ► NNTP
       ► TELNET
       ► None of the given choices
   
Question No: 28    ( Marks: 1 )    - Please choose one
  Which function returns a randomly selected floating point number between 0 and 1 ?
       ► floor(x)
       ► ceil(x)
       ► random()
       ► round(x)
   
Question No: 29    ( Marks: 1 )    - Please choose one
  Global variables can make the logic of a web page.
       ► Difficult to understand
       ► Easier to understand and maintain
       ► Difficult to reuse and maintain
       ► Difficult to understand, reuse and maintain
   
Question No: 30    ( Marks: 1 )    - Please choose one
  Mathematical functions in JavaScript, are accessed by referring to various methods of the _____________ object.
       ► Math
       ► Calculate
       ► Compute
       ► None of the given options
   
Question No: 31    ( Marks: 1 )
  What is the out put of the following JavaScript code ?
             name=”Ali Akbar”;
             document.write(name.charAt(4))  ;

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

The types of computer network according to the distance between nodes are:
1.    LAN
2.    WAN
   
Question No: 33    ( Marks: 2 )
  What is meant by universal access of internet services ?

Universal access of internet services means same functionality to every one.
   
Question No: 34    ( Marks: 2 )
  What is output of the following JavaScript code ?
      Str=”Virtual University of Pakistan”;
       document.write(str.substring(5,str.length))  ;
   
Question No: 35    ( Marks: 3 )
  How can we include images in a web page using HTML and Java script?

Images in HTML
It is quite straight forward to include gif and jpg images in an HTML webpage using the <IMG> tag.
Format:    <IMG  src=URL, alt=text  height=pixels  width=pixels  align="bottom/middle/top">

Images in Java script
Images in java script can be manipulated in many ways using the built in object image.
Properties: name,border,complete,height,width,hspace,bspace,lowsrc,src
Methods: none
Event handler: on Abort, on error, on load etc.


   


Question No: 36    ( Marks: 3 )
  Define Primary key and Queries

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

Queries
Queries are used to view, change, and analyze data. They can be used to combine data from different table and extract the exact data that is desired.

   
Question No: 37    ( Marks: 3 )
  What is a compound condition? Give example.

Compound condition is putting multiple statements at places where java script expects only one for those situations. This is done simply by enclosing any numbers of statements within curly braces, for example
 {If ((day == "Sunday") // (day == "Saturday"))
(Bhola = "cool";
Mood = "great";
Clothing = "casual";}
   
Question No: 38    ( Marks: 5 )
  Differentiate between For and While loop by writing the syntax of both loops.

The only difference between FOR loop and WHILE loop is the syntax for defining them. There is no performance difference at all.

Syntax of both loops
For( x = 99 ; x < 6000 : x = x + 1)
{ document . write (x) :}

While (tanks full == false )
{ tank = tank + bucket : }
Document.write ("tank is full now");


   
Question No: 39    ( Marks: 5 )
  Can a human doctor be replaced by an Expert System? Give reasons to support your answer.
Yes, a human doctor can be replaced by an expert system because systems that, in some limited sense, can replace an expert. Expert system can act as intelligent assistant to human experts or serve as a resource to people who may not have access to expert. And also the purpose of all application (expert system) is not to replace our human experts but to make their knowledge and experience more widely available.
   
Question No: 40    ( Marks: 10 )
  How education is changed because of advancements in the field of computing?

1.    Distance learning has received a boost due to the low price of internet and the availability of web based interactive content.
2.    Physical location is less of a hindrance now.
3.    It has also become possible for students to interact with other students as well as teachers situated along distance from them.
4.    Students enrolled in distance education programs have more control over what they want to learn, how and when they want to learn.
5.    The lack of face to face interaction and immediate questions and answers reduce the amount of knowledge that can be transferred from the teacher to the students.
6.    Computer based distance education may be the only source of high quality education for many, especially those in remote locations.
7.    Distance education is the best mode of education and convenient, which has become more effective with the augmentation of computer based learning.
8.    Distance learning is also world most important education system by which we can study at home and manage or get our study materials online.
9.    Also Distance learning allows us to refer online quizzes, assignments timely.
10.     By this field of computing one can get billions of knowledge by searching through internet.

   
Question No: 41    ( Marks: 10 )
  Answer the following questions by looking at the code given below.

1-    Which alert box will be displayed if variable 'marks' has value 75?
2-    What is the range of the marks when the alert box displays the message “Average performance”?
3-    What is the range of the marks when the alert box displays the message “That's poor performance”?
4-    Which alert box will be displayed if variable 'marks' has the value 100?

1.    if (marks == 100)
2.       {
3.       alert("You've touched a century");
4.       }
5.    else if (marks >= 80 && marks < 100)
6.       {
7.       alert("That's good");
8.       }
9.    else if (marks >= 60 && marks < 80)
10.       {
11.       alert("Above average performance");
12.       }
13.    else if (marks > 50 && marks < 60)
14.       {
15.       alert("Average performance");
16.       }
17.    else
18.       {
19.       alert("That's poor performance");
20.       }


Answer

1.    alert("Above average performance");
2.    else if (marks >= 60 && marks < 80)
3.    else if (marks <=50)
4.    alert("You've touched a century");

No comments:

Post a Comment