Professional Documents
Culture Documents
Ans: b
Explanation: A byte is a unit for data measurnment. Also,
microprocessors have cache for temporary storage of data.
Ans: b
Explanation: A source file is written in high level language. Before such a
file is handed over to the microprocessor, it needs to be converted into a
machine readable format. In addition, necessary binary files are also
added to a source file in order to finally get the complete file, which is
also known as an executable (.exe) file.
Ans: a
Explanation: An interpreter is a software, which converts each high-level
program statement into equivalent machine-level code.
Ans: B
Explanation: An object considerably has 2 parts- “HAS-part” and “DOES-
part”. “HAS-part” refers to the properties/ states/ attributes of an object
whereas behaviours are dealt by the “DOES-part”.
Ans: b
Explanation: A microprocessor is created using semiconductor
technology which is way faster than the magnetic technology composed
by the hard disk.
Ans: a
Explanation: A java byte code can be executed on any platform (OS)
regardless of the platform it has been compiled on.
Ans: a
Explanation: An loader is a software, which takes a copy of a file
(executable file in this case) present on the hard disk (secondary
memory) and to place it on the RAM (primary memory).
Ans: b
Explanation: Library files are coded in Machine Level Language. As a
result, these codes need not be compiled before the linking loader
embeds them to the object file hence generating the executable file.
13. Which of the following are the disadvantages of RAM?
a) Volatile
b) Compact
c) Expensive
d) Both a and c
Ans: d
Explanation: RAM is volatile as all its data is erased as soon as electricity
stops flowing through it. Also, since it is made using semiconductor
technology, RAM is expensive.
14. _______ is a file that is generated after compiling the source code.
a) Source file
b) Object file
c) Executable file
d) None of the above
Ans: b
Explanation: The compiler takes source code as the input and generates
object file (MLL) as output.
15. _______ is a file that is generated after linking a set of object files.
a) Source file
b) Object file
c) Executable file
d) None of the above
Ans: c
Explanation: An object file is an incomplete file. The linking loader adds
the necessary library files and other object files before the file is finally
complete and the executable(.exe) file is generated.
18. Java can be coded on one platform and can be executed on any
other platform. Which feature is this depicting?
A.Portability
B.Dynamic
C.Secure
D.None
Ans: A
Explanation: Portability is a feature which enables a programming
language to be compiled on one platform and be executable on multiple
platforms.
19. The objects which don’t have any references are known
as____________ .
A. Empty object
B. Anonymous object
C. Singleton object
D. None of the above
Ans: B
Explanation: For efficient utilization of memory on the heap, java runs a
garbage collector thread every few milliseconds. This thread collects all
such objects which don’t have any references. Such objects go by the
name anonymous/ garbage objects.