Font size
WorksheetsSECOND YEARS
Total questions: 40
Worksheet time: 20mins
Which will legally declare, construct, and initialize an array?
int [] myList = {"1", "2", "3"};
int [] myList = (5, 8, 2);
int myList [] [] = {4,9,7,0};
int myList [] = {4, 3, 7};
Which is a reserved word in the Java programming language?
method
native
subclasses
reference
Which one of these lists contains only Java programming language keywords?
class, if, void, long, Int, continue
byte, break, assert, switch, include
try, virtual, throw, final, volatile, transient
goto, instanceof, native, finally, default, throws
Which is the valid declarations within an interface definition?
public double methoda();
public final double methoda();
static void methoda(double d1);
protected void methoda(double d1);
What is the numerical range of a char?
-128 to 127
-(215) to (215) - 1
0 to 32767
0 to 65535
Which cannot directly cause a thread to stop executing?
Calling the SetPriority() method on a Thread object.
Calling the wait() method on an object.
Calling notify() method on an object
Calling read() method on an InputStream object.
Which of the following will directly stop the execution of a Thread?
wait()
notify()
notifyall()
exits synchronized code
Which will contain the body of the thread?
run();
start();
stop();
main();
What allows the programmer to destroy an object x?
x.delete()
x.finalize()
Runtime.getRuntime().gc()
Only the garbage collection system can destroy an object.
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
public
private
protected
transient
Which of the following is the property of transaction that protects data from system failure?
Atomicity
Isolation
Durability
Consistency
Which normalization form is based on the transitive dependency?
1NF
2NF
3NF
BCNF
Which is the lowest level of abstraction that describes how the data are actually stored?
Physical
Abstract
View
User
What is rows of a relation known as?
Degree
Entity
Tuple
None
Which of the following is a commands of DDL?
Alter
Delete
Create
All of the above
Which of the following SQL command is used for removing (or deleting) a relation form the database?
Drop
Delete
Rollback
Remove
Which of the following allows to uniquely identify a tuple?
Schema
Attribute
Super key
Domain
How many levels are there in architecture of database?
2
3
4
5
Which normal form deals with multivalued dependency?
1NF
2NF
3NF
4NF
What is the name of the query that is placed within a WHERE or HAVING clause of another query?
Multiquery
Subquery
Superquery
Masterquery
What is the main function of the command interpreter?
to provide the interface between the API and application program
to handle the files in the operating system
to get and execute the next user-specified command
none of the mentioned
To access the services of the operating system, the interface is provided by the ___________
Library
System calls
Assembly instructions
API
CPU scheduling is the basis of ___________
multiprogramming operating systems
larger memory sized systems
multiprocessor systems
none of the mentioned
Which one of the following is not a real time operating system?
RTLinux
Palm OS
QNX
VxWorks
In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?
Suspended state
Terminated state
Ready state
Blocked state
The FCFS algorithm is particularly troublesome for ___________
operating systems
multiprocessor systems
time sharing systems
multiprogramming systems
A process refers to 5 pages, A, B, C, D, E in the order : A, B, C, D, A, B, E, A, B, C, D, E. If the page replacement algorithm is FIFO, the number of page transfers with an empty internal store of 3 frames is?
8
10
9
7
If no frames are free, _____ page transfer(s) is/are required.
one
two
three
four
For 3 page frames, the following is the reference string: 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 How many page faults does the LRU page replacement algorithm produce?
10
15
11
12
In Unix, which system call creates the new process?
create
fork
new
none of the mentioned
What is the port number of PoP?
35
43
110
25
What is the number of layers in the OSI model?
2 layers
4 layers
7 layers
9 layers
Identify the layer which provides service to the user.
Session layer
Application layer
Presentation layer
Physical layer
Identify the total versions of IP.
1
2
34
Choose among the following, which is the most common internet protocol.
PPP
FTP
TCP/IP
SMTP
What is the length of the IPv4 address?
8 bits
16 bits
32 bits
128 bits
What does port number 143 refer to?
CAP
FTP
IMAP
POP
Identify the device used to boost up a weak signal.
Modem
Repeater
Switch
Router
What is the length of the MAC address?
8 bits
16 bits
32 bits
48 bits
What of the following device is used in the network layer?
Application gateway
Switch
Router
Repeaters
