FINALTERM EXAMINATION
Fall 2009
CS101- Introduction to Computing (Session - 2)
Ref No: 1115808
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Human are better than computers at
► Efficiency
► Accuracy
► Pattern recognition
► None of the given choices
Question No: 2 ( Marks: 1 ) - Please choose one
TCP stands for ___________.
► Total communication protocol
► Transmission control protocol
► Transfer control protocol
► Transfer collection protocol
Question No: 3 ( Marks: 1 ) - Please choose one
First computer network was ___________.
► NSFNET
► FIRSTNET
► ARPANET
► ORPHANET
Question No: 4 ( Marks: 1 ) - Please choose one
A user may access any item on the web through __________.
► URL
► Telnet
► POP
► SMTP
Question No: 5 ( Marks: 1 ) - Please choose one
In JavaScript, a variable declaration is
► Optional
► Mandatory
► Not allowed
► None of the given
Question No: 6 ( Marks: 1 ) - Please choose one
According to a popular heuristic, success is defined by ___________.
► The user
► The builder
► Both user and builder
► None of the given options
Question No: 7 ( Marks: 1 ) - Please choose one
To store rounded number of 8.6 in a variable called "r_number", we write _____________.
► r_numbers=Maths.rounds(8.6)
► r_number=Math.rounds(8.6)
► r_number=Math.round(8.6)
► r_number=Maths.round(8.6)
Question No: 8 ( Marks: 1 ) - Please choose one
random() function returns a randomly-selected, floating-point number between ____________.
► 0 and 1
► 0 and 10
► 0 and -10
► 0 and -1
Question No: 9 ( Marks: 1 ) - Please choose one
Trinoo is a __________ software.
► DoS
► Scanning
► Utility
► None of the given options
Question No: 10 ( Marks: 1 ) - Please choose one
Which attribute of the IMG tag tells us about the source of the image ____________.
► source
► path
► loc
► src
Question No: 11 ( Marks: 1 ) - Please choose one
The developer report to ___________ in a development team.
► Team Lead
► Project Manager
► CEO
► IT Manager
Question No: 12 ( Marks: 1 ) - Please choose one
The effective way not to only write programs but also it works properly and further more to minimize the time and the development cost of the program is called___________________
► Programming Mechanism
► Programming Methodology
► Programming Synchronization
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
TCP stands for ________.
► Transfer Center protocol
► Transmission Control Protocol
► Transmission Center Protocol
► Telephone Center Protocol
Question No: 14 ( 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: 15 ( Marks: 1 ) - Please choose one
Many developers write the _________ first and then incrementally convert each line into _________.
► Real code & Pseudo code
► Pseudo code & Real code
► Real code & Artificial code
► None of the given options
Question No: 16 ( Marks: 1 ) - Please choose one
Collection of facts & figures is called ____________.
► Information
► Data
► Entity
► Attribute
Question No: 17 ( 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: 18 ( 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: 19 ( Marks: 1 ) - Please choose one
Using COLSPAN, number of rows of the current cell should extend itself
► Upward
► Downward
► Both Upward and Downward
► None of the given choices
Question No: 20 ( Marks: 1 ) - Please choose one
Microsoft Word is a type of:
► System Software
► Freeware Software
► Shrink-Wrapped Software
► Custom-built Software
Question No: 21 ( Marks: 1 ) - Please choose one
Compound Statement after decision constructs in JavaScript is enclosed with
► ( )
► [ ]
► { };
► { }
Question No: 22 ( Marks: 1 ) - Please choose one
Users __________, how things work.
► Analyze in detail
► Muddle through
► Figure out
► Read in detail
Question No: 23 ( Marks: 1 ) - Please choose one
One can send an email message to a remote computer using _______ protocol
► HTTP
► SMTP
► FTP
► TELNET
Question No: 24 ( Marks: 1 ) - Please choose one
Writing a response, multiple statements are separated from each other with the help of
► Period ( . )
► Comma ( , )
► Colon ( : )
► Semicolon ( ; )
Question No: 25 ( Marks: 1 ) - Please choose one
With the passage of time the field of Computing and Telecommunication is _____________.
► Diverging
► Converging
► Becoming different
► Becoming unique
Question No: 26 ( Marks: 1 ) - Please choose one
When we have to show value as part of a whole picture, which type of chart is used.
► Bar chart
► Pie chart
► Line graph
► None of the given
Question No: 27 ( Marks: 1 ) - Please choose one
______________ software directly interacts with the user.
► Application software
► System software
► Anonymous software
► Interactive software
Question No: 28 ( 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: 29 ( Marks: 1 ) - Please choose one
In partitioning of program/module, it should be assured that partitioned chunks should be as _________ as possible.
► Dependent
► Independent
► Complex
► All of the above
Question No: 30 ( Marks: 1 ) - Please choose one
for(var i=1; i<=2;i=i+1)
{
document.write( "Sorted Words:" + "<BR>" )
}
Which of the following shall be the output of above code:
► Sorted Words: Sorted Words:
► Sorted Words:
Sorted Words:
► Sorted Words: “<BR>”
Sorted Words: “<BR>”
► Sorted Words: <BR>
Sorted Words: <BR>
Question No: 31 ( Marks: 1 )
What are the elements of website design? Any one
Ans:
Elements of webdesign: There are in 3 elements of web design and below are there names:
1. Navigation scheme
2. Overall look and feel
3. Layout of information
Question No: 32 ( Marks: 1 )
What kind of information can be stored in a database ?
• Numbers, Booleans, text
• Sounds
• Images
• Video
Question No: 33 ( Marks: 2 )
Why hub is used in networks?
HUB: Hub is networking component which can be used to connect the networks and it can also be used to extend the size of networks.
Simply it can be explained as a common connection point for devices in a network. It contains multiple ports like 8port, 16 port , 23 port hubs
Question No: 34 ( Marks: 2 )
Write names of the DoS attack’s phases?
DoS (Denail of service): DoS attach has in total 3 phases and below they are listed:
1. Search
2. Arm
3. Attack
Question No: 35 ( Marks: 3 )
What do you mean by FTP or File Transfer Protocol?
FTP: File transfer protocol was first introduced in 1973; it standardized the transfer of files between computers on a TCP/IP network (e.g internet).
It can download or upload files to a remote computer using the FTP protocol
Operations performed using FTP:
1. List, change, create folders on a remote computer
2. Upload and download files
Usage: Transferring Web content from the developer’s PC to the Web server
Question No: 36 ( Marks: 3 )
How many types of errors can be found during a program developement? List them.
1. Syntax errors
2. Semantic errors
3. Run-time errors
Question No: 37 ( Marks: 3 )
Write code in JavaScript to display the odd numbers between 20 to 100 using FOR statement.
Note: No need to write whole HTML program. Just JavaScript code of require part is require.
Question No: 38 ( Marks: 5 )
Why the number of temporary workers are on the rise? Discuss main reasons?
Temporary workers:
Temporary workers are those workers which a company can hire to perform a certain task with in a defined time period.
Temporary workers are mostly consultants which move organization to organization to perform assigned workers.
Reasons:
1. Now-a-days; whole world is suffering from financial crisis, most of the companies have frozen there hiring, just in case they need a resource they are looking for a temporary worker for a specified time span to perform a specialized task and they just pay him for that period of time.
2. Temporary workers are mostly consultants which have expertise in a certain field and they are considered specialists in that field.
3. Employer doesn’t need to train the temporary worker.
Question No: 39 ( Marks: 5 )
Write the JavaScript code for the Function SumOddNumbers(maxNumber) that can add non-negative odd numbers up to maxNumber and return their sum.
Java Script Code:
Question No: 40 ( Marks: 10 )
Define network organization? What are important features of network organization? (4+6)
Network Organization :
Network organization is an interfirm organization that is characterized by organic or informal social systems. A company or group of companies that has a minimum of formal structures and relies instead on the formation and dissolution of teams to meet specific objectives..
Features of Network Organization:
1. The organizations are learning that business can be done in a more effective manner if emphasis is placed upon cooperation, shared responsibility and networking:
• Within the organization
• And also with their customers and suppliers
2. Changes according to the demand of the times
3. Works effectively to meet the business goals of the organization
4. Everyone has a feeling that he/she is playing a major role in the organization which eventually gives a feel of ownership and because of that employee can put his best effort to accomplish a task.
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?
Ans: alert("Above average performance");
2- What is the range of the marks when the alert box displays the message “Average performance”?
Ans: else if (marks > 50 && marks < 60)
{
alert("Average performance");
}
3- What is the range of the marks when the alert box displays the message “That's poor performance”?
Ans: The below mentioned alert box is displayed for all the marks less then or equal to 50
else
{
alert("That's poor performance");
}
4- Which alert box will be displayed if variable 'marks' has the value 100?
Ans: {
alert("You've touched a century");
}
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. }
Paperz & Assigns
My blog has very helpful materiel for Students of Computer Science and Information Technology Specially for those who are studying at Virtual University of Pakistan.So there including past Final and Mid term Papers and assignments also so that Student can follow the pattern and give their best in their exams.
Friday, 24 January 2014
FINALTERM EXAMINATION Fall 2009 CS101- Introduction to Computing (Session - 2)
FINALTERM EXAMINATION
Fall 2009
CS101- Introduction to Computing (Session - 2)
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Human are better than computers at
► Efficiency
► Accuracy
► Pattern recognition
► None of the given choices
Question No: 2 ( Marks: 1 ) - Please choose one
TCP stands for ___________.
► Total communication protocol
► Transmission control protocol
► Transfer control protocol
► Transfer collection protocol
Question No: 3 ( Marks: 1 ) - Please choose one
First computer network was ___________.
► NSFNET
► FIRSTNET
► ARPANET
► ORPHANET
Question No: 4 ( Marks: 1 ) - Please choose one
A user may access any item on the web through __________.
► URL
► Telnet
► POP
► SMTP
Question No: 5 ( Marks: 1 ) - Please choose one
In JavaScript, a variable declaration is
► Optional
► Mandatory
► Not allowed
► None of the given
Question No: 6 ( Marks: 1 ) - Please choose one
According to a popular heuristic, success is defined by ___________.
► The user
► The builder
► Both user and builder
► None of the given options
Question No: 7 ( Marks: 1 ) - Please choose one
To store rounded number of 8.6 in a variable called "r_number", we write _____________.
► r_numbers=Maths.rounds(8.6)
► r_number=Math.rounds(8.6)
► r_number=Math.round(8.6)
► r_number=Maths.round(8.6)
Question No: 8 ( Marks: 1 ) - Please choose one
random() function returns a randomly-selected, floating-point number between ____________.
► 0 and 1
► 0 and 10
► 0 and -10
► 0 and -1
Question No: 9 ( Marks: 1 ) - Please choose one
Trinoo is a __________ software.
► DoS
► Scanning
► Utility
► None of the given options
Question No: 10 ( Marks: 1 ) - Please choose one
Which attribute of the IMG tag tells us about the source of the image ____________.
► source
► path
► loc
► src
Question No: 11 ( Marks: 1 ) - Please choose one
The developer report to ___________ in a development team.
► Team Lead
► Project Manager
► CEO
► IT Manager
Question No: 12 ( Marks: 1 ) - Please choose one
The effective way not to only write programs but also it works properly and further more to minimize the time and the development cost of the program is called___________________
► Programming Mechanism
► Programming Methodology
► Programming Synchronization
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
TCP stands for ________.
► Transfer Center protocol
► Transmission Control Protocol
► Transmission Center Protocol
► Telephone Center Protocol
Question No: 14 ( 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: 15 ( Marks: 1 ) - Please choose one
Many developers write the _________ first and then incrementally convert each line into _________.
► Real code & Pseudo code
► Pseudo code & Real code
► Real code & Artificial code
► None of the given options
Question No: 16 ( Marks: 1 ) - Please choose one
Collection of facts & figures is called ____________.
► Information
► Data
► Entity
► Attribute
Question No: 17 ( 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: 18 ( 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: 19 ( Marks: 1 ) - Please choose one
Using COLSPAN, number of rows of the current cell should extend itself
► Upward
► Downward
► Both Upward and Downward
► None of the given choices
Question No: 20 ( Marks: 1 ) - Please choose one
Microsoft Word is a type of:
► System Software
► Freeware Software
► Shrink-Wrapped Software
► Custom-built Software
Question No: 21 ( Marks: 1 ) - Please choose one
Compound Statement after decision constructs in JavaScript is enclosed with
► ( )
► [ ]
► { };
► { }
Question No: 22 ( Marks: 1 ) - Please choose one
Users __________, how things work.
► Analyze in detail
► Muddle through
► Figure out
► Read in detail
Question No: 23 ( Marks: 1 ) - Please choose one
One can send an email message to a remote computer using _______ protocol
► HTTP
► SMTP
► FTP
► TELNET
Question No: 24 ( Marks: 1 ) - Please choose one
Writing a response, multiple statements are separated from each other with the help of
► Period ( . )
► Comma ( , )
► Colon ( : )
► Semicolon ( ; )
Question No: 25 ( Marks: 1 ) - Please choose one
With the passage of time the field of Computing and Telecommunication is _____________.
► Diverging
► Converging
► Becoming different
► Becoming unique
Question No: 26 ( Marks: 1 ) - Please choose one
When we have to show value as part of a whole picture, which type of chart is used.
► Bar chart
► Pie chart
► Line graph
► None of the given
Question No: 27 ( Marks: 1 ) - Please choose one
______________ software directly interacts with the user.
► Application software
► System software
► Anonymous software
► Interactive software
Question No: 28 ( 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: 29 ( Marks: 1 ) - Please choose one
In partitioning of program/module, it should be assured that partitioned chunks should be as _________ as possible.
► Dependent
► Independent
► Complex
► All of the above
Question No: 30 ( Marks: 1 ) - Please choose one
for(var i=1; i<=2;i=i+1)
{
document.write( "Sorted Words:" + "<BR>" )
}
Which of the following shall be the output of above code:
► Sorted Words: Sorted Words:
► Sorted Words:
Sorted Words:
► Sorted Words: “<BR>”
Sorted Words: “<BR>”
► Sorted Words: <BR>
Sorted Words: <BR>
Question No: 31 ( Marks: 1 )
What are the elements of website design? Any one
Ans:
Elements of webdesign: There are in 3 elements of web design and below are there names:
1. Navigation scheme
2. Overall look and feel
3. Layout of information
Question No: 32 ( Marks: 1 )
What kind of information can be stored in a database ?
• Numbers, Booleans, text
• Sounds
• Images
• Video
Question No: 33 ( Marks: 2 )
Why hub is used in networks?
HUB: Hub is networking component which can be used to connect the networks and it can also be used to extend the size of networks.
Simply it can be explained as a common connection point for devices in a network. It contains multiple ports like 8port, 16 port , 23 port hubs
Question No: 34 ( Marks: 2 )
Write names of the DoS attack’s phases?
DoS (Denail of service): DoS attach has in total 3 phases and below they are listed:
1. Search
2. Arm
3. Attack
Question No: 35 ( Marks: 3 )
What do you mean by FTP or File Transfer Protocol?
FTP: File transfer protocol was first introduced in 1973; it standardized the transfer of files between computers on a TCP/IP network (e.g internet).
It can download or upload files to a remote computer using the FTP protocol
Operations performed using FTP:
1. List, change, create folders on a remote computer
2. Upload and download files
Usage: Transferring Web content from the developer’s PC to the Web server
Question No: 36 ( Marks: 3 )
How many types of errors can be found during a program developement? List them.
1. Syntax errors
2. Semantic errors
3. Run-time errors
Question No: 37 ( Marks: 3 )
Write code in JavaScript to display the odd numbers between 20 to 100 using FOR statement.
Note: No need to write whole HTML program. Just JavaScript code of require part is require.
Question No: 38 ( Marks: 5 )
Why the number of temporary workers are on the rise? Discuss main reasons?
Temporary workers:
Temporary workers are those workers which a company can hire to perform a certain task with in a defined time period.
Temporary workers are mostly consultants which move organization to organization to perform assigned workers.
Reasons:
1. Now-a-days; whole world is suffering from financial crisis, most of the companies have frozen there hiring, just in case they need a resource they are looking for a temporary worker for a specified time span to perform a specialized task and they just pay him for that period of time.
2. Temporary workers are mostly consultants which have expertise in a certain field and they are considered specialists in that field.
3. Employer doesn’t need to train the temporary worker.
Question No: 39 ( Marks: 5 )
Write the JavaScript code for the Function SumOddNumbers(maxNumber) that can add non-negative odd numbers up to maxNumber and return their sum.
Java Script Code:
Question No: 40 ( Marks: 10 )
Define network organization? What are important features of network organization? (4+6)
Network Organization :
Network organization is an interfirm organization that is characterized by organic or informal social systems. A company or group of companies that has a minimum of formal structures and relies instead on the formation and dissolution of teams to meet specific objectives..
Features of Network Organization:
1. The organizations are learning that business can be done in a more effective manner if emphasis is placed upon cooperation, shared responsibility and networking:
• Within the organization
• And also with their customers and suppliers
2. Changes according to the demand of the times
3. Works effectively to meet the business goals of the organization
4. Everyone has a feeling that he/she is playing a major role in the organization which eventually gives a feel of ownership and because of that employee can put his best effort to accomplish a task.
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?
Ans: alert("Above average performance");
2- What is the range of the marks when the alert box displays the message “Average performance”?
Ans: else if (marks > 50 && marks < 60)
{
alert("Average performance");
}
3- What is the range of the marks when the alert box displays the message “That's poor performance”?
Ans: The below mentioned alert box is displayed for all the marks less then or equal to 50
else
{
alert("That's poor performance");
}
4- Which alert box will be displayed if variable 'marks' has the value 100?
Ans: {
alert("You've touched a century");
}
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. }
Fall 2009
CS101- Introduction to Computing (Session - 2)
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Human are better than computers at
► Efficiency
► Accuracy
► Pattern recognition
► None of the given choices
Question No: 2 ( Marks: 1 ) - Please choose one
TCP stands for ___________.
► Total communication protocol
► Transmission control protocol
► Transfer control protocol
► Transfer collection protocol
Question No: 3 ( Marks: 1 ) - Please choose one
First computer network was ___________.
► NSFNET
► FIRSTNET
► ARPANET
► ORPHANET
Question No: 4 ( Marks: 1 ) - Please choose one
A user may access any item on the web through __________.
► URL
► Telnet
► POP
► SMTP
Question No: 5 ( Marks: 1 ) - Please choose one
In JavaScript, a variable declaration is
► Optional
► Mandatory
► Not allowed
► None of the given
Question No: 6 ( Marks: 1 ) - Please choose one
According to a popular heuristic, success is defined by ___________.
► The user
► The builder
► Both user and builder
► None of the given options
Question No: 7 ( Marks: 1 ) - Please choose one
To store rounded number of 8.6 in a variable called "r_number", we write _____________.
► r_numbers=Maths.rounds(8.6)
► r_number=Math.rounds(8.6)
► r_number=Math.round(8.6)
► r_number=Maths.round(8.6)
Question No: 8 ( Marks: 1 ) - Please choose one
random() function returns a randomly-selected, floating-point number between ____________.
► 0 and 1
► 0 and 10
► 0 and -10
► 0 and -1
Question No: 9 ( Marks: 1 ) - Please choose one
Trinoo is a __________ software.
► DoS
► Scanning
► Utility
► None of the given options
Question No: 10 ( Marks: 1 ) - Please choose one
Which attribute of the IMG tag tells us about the source of the image ____________.
► source
► path
► loc
► src
Question No: 11 ( Marks: 1 ) - Please choose one
The developer report to ___________ in a development team.
► Team Lead
► Project Manager
► CEO
► IT Manager
Question No: 12 ( Marks: 1 ) - Please choose one
The effective way not to only write programs but also it works properly and further more to minimize the time and the development cost of the program is called___________________
► Programming Mechanism
► Programming Methodology
► Programming Synchronization
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
TCP stands for ________.
► Transfer Center protocol
► Transmission Control Protocol
► Transmission Center Protocol
► Telephone Center Protocol
Question No: 14 ( 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: 15 ( Marks: 1 ) - Please choose one
Many developers write the _________ first and then incrementally convert each line into _________.
► Real code & Pseudo code
► Pseudo code & Real code
► Real code & Artificial code
► None of the given options
Question No: 16 ( Marks: 1 ) - Please choose one
Collection of facts & figures is called ____________.
► Information
► Data
► Entity
► Attribute
Question No: 17 ( 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: 18 ( 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: 19 ( Marks: 1 ) - Please choose one
Using COLSPAN, number of rows of the current cell should extend itself
► Upward
► Downward
► Both Upward and Downward
► None of the given choices
Question No: 20 ( Marks: 1 ) - Please choose one
Microsoft Word is a type of:
► System Software
► Freeware Software
► Shrink-Wrapped Software
► Custom-built Software
Question No: 21 ( Marks: 1 ) - Please choose one
Compound Statement after decision constructs in JavaScript is enclosed with
► ( )
► [ ]
► { };
► { }
Question No: 22 ( Marks: 1 ) - Please choose one
Users __________, how things work.
► Analyze in detail
► Muddle through
► Figure out
► Read in detail
Question No: 23 ( Marks: 1 ) - Please choose one
One can send an email message to a remote computer using _______ protocol
► HTTP
► SMTP
► FTP
► TELNET
Question No: 24 ( Marks: 1 ) - Please choose one
Writing a response, multiple statements are separated from each other with the help of
► Period ( . )
► Comma ( , )
► Colon ( : )
► Semicolon ( ; )
Question No: 25 ( Marks: 1 ) - Please choose one
With the passage of time the field of Computing and Telecommunication is _____________.
► Diverging
► Converging
► Becoming different
► Becoming unique
Question No: 26 ( Marks: 1 ) - Please choose one
When we have to show value as part of a whole picture, which type of chart is used.
► Bar chart
► Pie chart
► Line graph
► None of the given
Question No: 27 ( Marks: 1 ) - Please choose one
______________ software directly interacts with the user.
► Application software
► System software
► Anonymous software
► Interactive software
Question No: 28 ( 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: 29 ( Marks: 1 ) - Please choose one
In partitioning of program/module, it should be assured that partitioned chunks should be as _________ as possible.
► Dependent
► Independent
► Complex
► All of the above
Question No: 30 ( Marks: 1 ) - Please choose one
for(var i=1; i<=2;i=i+1)
{
document.write( "Sorted Words:" + "<BR>" )
}
Which of the following shall be the output of above code:
► Sorted Words: Sorted Words:
► Sorted Words:
Sorted Words:
► Sorted Words: “<BR>”
Sorted Words: “<BR>”
► Sorted Words: <BR>
Sorted Words: <BR>
Question No: 31 ( Marks: 1 )
What are the elements of website design? Any one
Ans:
Elements of webdesign: There are in 3 elements of web design and below are there names:
1. Navigation scheme
2. Overall look and feel
3. Layout of information
Question No: 32 ( Marks: 1 )
What kind of information can be stored in a database ?
• Numbers, Booleans, text
• Sounds
• Images
• Video
Question No: 33 ( Marks: 2 )
Why hub is used in networks?
HUB: Hub is networking component which can be used to connect the networks and it can also be used to extend the size of networks.
Simply it can be explained as a common connection point for devices in a network. It contains multiple ports like 8port, 16 port , 23 port hubs
Question No: 34 ( Marks: 2 )
Write names of the DoS attack’s phases?
DoS (Denail of service): DoS attach has in total 3 phases and below they are listed:
1. Search
2. Arm
3. Attack
Question No: 35 ( Marks: 3 )
What do you mean by FTP or File Transfer Protocol?
FTP: File transfer protocol was first introduced in 1973; it standardized the transfer of files between computers on a TCP/IP network (e.g internet).
It can download or upload files to a remote computer using the FTP protocol
Operations performed using FTP:
1. List, change, create folders on a remote computer
2. Upload and download files
Usage: Transferring Web content from the developer’s PC to the Web server
Question No: 36 ( Marks: 3 )
How many types of errors can be found during a program developement? List them.
1. Syntax errors
2. Semantic errors
3. Run-time errors
Question No: 37 ( Marks: 3 )
Write code in JavaScript to display the odd numbers between 20 to 100 using FOR statement.
Note: No need to write whole HTML program. Just JavaScript code of require part is require.
Question No: 38 ( Marks: 5 )
Why the number of temporary workers are on the rise? Discuss main reasons?
Temporary workers:
Temporary workers are those workers which a company can hire to perform a certain task with in a defined time period.
Temporary workers are mostly consultants which move organization to organization to perform assigned workers.
Reasons:
1. Now-a-days; whole world is suffering from financial crisis, most of the companies have frozen there hiring, just in case they need a resource they are looking for a temporary worker for a specified time span to perform a specialized task and they just pay him for that period of time.
2. Temporary workers are mostly consultants which have expertise in a certain field and they are considered specialists in that field.
3. Employer doesn’t need to train the temporary worker.
Question No: 39 ( Marks: 5 )
Write the JavaScript code for the Function SumOddNumbers(maxNumber) that can add non-negative odd numbers up to maxNumber and return their sum.
Java Script Code:
Question No: 40 ( Marks: 10 )
Define network organization? What are important features of network organization? (4+6)
Network Organization :
Network organization is an interfirm organization that is characterized by organic or informal social systems. A company or group of companies that has a minimum of formal structures and relies instead on the formation and dissolution of teams to meet specific objectives..
Features of Network Organization:
1. The organizations are learning that business can be done in a more effective manner if emphasis is placed upon cooperation, shared responsibility and networking:
• Within the organization
• And also with their customers and suppliers
2. Changes according to the demand of the times
3. Works effectively to meet the business goals of the organization
4. Everyone has a feeling that he/she is playing a major role in the organization which eventually gives a feel of ownership and because of that employee can put his best effort to accomplish a task.
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?
Ans: alert("Above average performance");
2- What is the range of the marks when the alert box displays the message “Average performance”?
Ans: else if (marks > 50 && marks < 60)
{
alert("Average performance");
}
3- What is the range of the marks when the alert box displays the message “That's poor performance”?
Ans: The below mentioned alert box is displayed for all the marks less then or equal to 50
else
{
alert("That's poor performance");
}
4- Which alert box will be displayed if variable 'marks' has the value 100?
Ans: {
alert("You've touched a century");
}
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. }
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");
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");
Subscribe to:
Posts (Atom)