0% found this document useful (0 votes)
98 views

CS101 Quiz

This document contains 20 multiple choice questions about various topics related to programming and computer science, including JavaScript, algorithms, object-oriented design, operating systems, and the differences between compilers and interpreters. Each question is timed and worth 1 total mark.

Uploaded by

aamir shahzad
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

CS101 Quiz

This document contains 20 multiple choice questions about various topics related to programming and computer science, including JavaScript, algorithms, object-oriented design, operating systems, and the differences between compilers and interpreters. Each question is timed and worth 1 total mark.

Uploaded by

aamir shahzad
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Question # 1 of 10 ( Start time: 09:27:18 PM ) Total Marks: 1

_________ is not a property of the “document” object


Select correct option:

bgColor
fgColor
linkColor
*href

Question # 2 of 10 ( Start time: 09:28:13 PM ) Total Marks: 1


Which of the following is not an advantage of client side scripting?
Select correct option:

Reduced server load


Reduced network traffic
Decreases the complexity
None of above

Question # 3 of 10 ( Start time: 09:29:06 PM ) Total Marks: 1


For large SW systems object oriented design emphasizes separating a program's data
from its functionality and this leads to SW that is difficult to maintain & understand.
Select correct option:

True
False

Question # 4 of 10 ( Start time: 09:30:07 PM ) Total Marks: 1


No user interaction with the computer while the program is running, these type of
programs are called _________
Select correct option:

Non User Programs


Interactive Programs
* Event-Driven Programs
Batch Programs

Question # 5 of 10 ( Start time: 09:31:17 PM ) Total Marks: 1


Some of the things that JavaScript can do! Choose incorrect option from following
Select correct option:

Control the appearance of the browser


Read -- Modify
Control the content and appearance of the document displayed in the browser
Interact with the user through event handlers

Question # 6 of 10 ( Start time: 09:32:09 PM ) Total Marks: 1


In Algorithms semantic correctness is easier to check as compared with Syntactic
Select correct option:

True
False

Question # 7 of 10 ( Start time: 09:33:14 PM ) Total Marks: 1


Objects are modified with ______ that are associated with that object – e.g. a resize a
Window with resizeTo(150, 200)
Select correct option:

Properties
Events
* Methods
All of the above

Question # 8 of 10 ( Start time: 09:34:04 PM ) Total Marks: 1


______________ immediate response, but execute code slowly.
Select correct option:

Compiler
* Interpreter

Question # 9 of 10 ( Start time: 09:34:22 PM ) Total Marks: 1


In case of _________ mode, user starts a program which computer executes with the
given data and produces results without any further intervention from the user.
Select correct option:

Batch
Interactive
Time-sharing
User

Question # 10 of 10 ( Start time: 09:36:35 PM ) Total Marks: 1


___________ software sits on top of __________ software for performing user tasks.
Select correct option:

System, Application
System, Productivity
Application, System
System, Programming

Question # 1 of 10 ( Start time: 09:38:24 PM ) Total Marks: 1


Client-side scripts works with all browsers
Select correct option:
* True
False

Question # 2 of 10 ( Start time: 09:39:28 PM ) Total Marks: 1


No user interaction with the computer while the program is running, these type of
programs are called _________
Select correct option:

Non User Programs


Interactive Programs
* Event-Driven Programs
Batch Programs

Question # 3 of 10 ( Start time: 09:40:41 PM ) Total Marks: 1


Which one of the following is not type of list which we add on web page ?
Select correct option:

Definition list
Ordered list
* Simple list
Unordered list

Question # 4 of 10 ( Start time: 09:41:29 PM ) Total Marks: 1


The Main benefit of object oriented design is _________
Select correct option:

Clarity
Data Hiding
* Reusability
Simplicity
Question # 5 of 10 ( Start time: 09:42:41 PM ) Total Marks: 1
During one of the international cricket tournaments, one of the teams intentionally lost a
match, so that they could qualify for the next round If they had won that particular match,
some other team would have qualified This is an example of a _________________
Select correct option:

*Greedy algorithm
Non-greedy algorithm

Question # 6 of 10 ( Start time: 09:43:52 PM ) Total Marks: 1


Which one of the following web programming languages used to do client-side scripting?
Select correct option:

ASP
Server Side JavaScript
PHP
* VBScript

Question # 7 of 10 ( Start time: 09:44:51 PM ) Total Marks: 1


The process that can be used to solve a problem is termed as the ______________
Select correct option:

Use Case
Protocol
* Algorithm
Flow Diagram

Question # 8 of 10 ( Start time: 09:45:35 PM ) Total Marks: 1


What step\steps is\are not correct in following sorting algorithm? Step 1 Repeat the
following steps while the list is sorted: Step 2 Start with the first object in the list Step 3
Swap it with the one next to it if they are in the correct order Step 4 Repeat the same with
the next to the first object Step 5 Keep on repeating until you reach the last object in the
list
Select correct option:

Step 1
Step 3 and Step 2
Step 4
* Step 1 and Step 3

Question # 9 of 10 ( Start time: 09:46:17 PM ) Total Marks: 1


Core tasks of an OS are:
Select correct option:

Processor Management
User Interface
Storage Management
* All of given

Question # 10 of 10 ( Start time: 09:47:21 PM ) Total Marks: 1


A compiler translates high-level instructions into an intermediate form, which it then
executes. In contrast, an interpreter translates high-level instructions directly into
machine language
Select correct option:

True
* False

You might also like