Java Programming and Computer Technology
Covers Java programming keywords and access modifiers, computer networking layers and protocols, and computer hardware fundamentals
Questions
A bluetooth device can communicate with maixmum of how many devices(including master)?
- 6
- 1
- 8
- No limit
Which was the first evolved complete CPU on one chip?
- Intel 8085
- Intel 4004
- Intel 8086
- Intel 3003
Accessing a shared network folder through a mapped network drive is much faster than accessing the same folder via My Network Places.
- True
- False
An IP address can only be Public
- True
- False
The main function of the network layer is routing packets from the source machine to the destination machine
- True
- False
A router that can handle multiple protocols is called a ________router.
- Ethernet
- Internet
- Multiprotocol
- None of the above
The technique of temporarily delaying outgoing acknowledgements so that they can be hooked onto the next outgoing data frame is known as
- Sliding
- piggybacking
- correcting
- None of the above
The data link layer takes the packets it gets from the network layer and encapsulates them into frames for transmission
- True
- False
The data link layer takes the packets it gets from the network layer and encapsulates them into frames for transmission
- True
- False
Undirectional protocols are also called as Sliding window protocols
- True
- False
The data link layer :
- Provides a well-defined service interface to the network layer
- Deals with transmission errors
- Regulating the flow of data so that slow receivers are not swamped by fast senders
- All of the above
SCSI port (pronounced skuzzy) stands for
- System Computer Scanning Interface
- Small Computer System Interface
- Small Computer System Internet
- System Computer, System Interfaced
Which keyword can protect a class in a package from accessibility by the classes outside the package
- private
- final
- protected
- don't use any keyword at all (make it default)
The use of protected keyword to a member in a class will restrict its visibility as follows
- Visible only inside the package
- Visible only in the class and its subclass in the same package
- Visible in all classes in the same package and subclasses in other packages
- Visible only in the class where it is declared
Which of the following statements about abstract methods/classes in Java are true?1. An abstract class cannot be instantiated.2. Constructors cannot be abstract.3. A subclass of an abstract class must defined the abstract methods.4. Static methods may be declared abstract.
- Line 1, line 2 and line 3 only
- Line 1 only
- Line 1 and line 2 only
- Line 2 only
- All are true
We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?
- private
- public
- private OR protected
- protected
Which of the following keywords are used to control access to a class member? (A) default (B) abstract (C) protected (D) interface (E) public
- All of these
- (A), (C) & (E)
- (C) & (E)
- (B), (C) & (E)
Which of the following are keywords? (A) switch (B) integer (C) default (D) boolean (E) object
- (B) & (C)
- (E)
- (A) & (C)
- (D)
The keywords reserved but not used in the initial version of Java are: (A) union (B) const (C) inner (D) goto (E) boolean (F) synchronized
- All of these
- (C) & (E)
- (A), (C) & (E)
- (B),(C) & (D)
Which of the following are not keywords?(A) NULL(B) implements(C) protected(D) extended(E) string
- (D) & (E)
- (A), (D) & (E)
- (D)
- (C), (D) & (E)