Free Software Design and Architecture MCQs with Answers
493 Software Design and Architecture MCQs from Software Engineering, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.
Last updated
493 questions · page 4 of 25
- A. Interface
- B. Class
- C. Variable
- D. Method
Explanation: Runnable is a Java interface containing the run() method. A class implements it to define work that can be executed by a thread.
Correct answer: Interface- A. At Compile-time
- B. At run-time
- C. Depends on the code
- D. None of these
Explanation: The new keyword creates an object and allocates its memory while the program is running, so object creation occurs at run time rather than…
Correct answer: At run-time- A. reclaim() method
- B. finalize() method
- C. final() method
- D. both b and c
Explanation: Historically, the JVM could call finalize() on an unreachable object before garbage collection reclaimed it.
Correct answer: finalize() method- A. .class
- B. .doc
- C. .java
- D. .cdr
Explanation: The Java compiler converts source code into bytecode stored in a .class file, which the JVM later loads and executes.
Correct answer: .class- A. abstract
- B. static
- C. volatile
- D. final
Explanation: The static keyword makes a variable belong to the class itself, so one shared copy exists rather than a separate copy for every object.
Correct answer: static- A. int
- B. char
- C. string
- D. double
Explanation: The main method receives command-line arguments as a String array, written as String[].
Correct answer: string- A. javacmd
- B. javaamd
- C. javap
- D. java
Explanation: javap is the Java class-file disassembler and can display bytecode, fields, methods, and signatures.
Correct answer: javap- A. java compiler
- B. java debugger
- C. java Interpreter
- D. java Disassemble
Explanation: The name javap refers to Java's disassembler tool, which examines compiled .class files and can show their bytecode structure.
Correct answer: java Disassemble- A. Deep cloning
- B. Shallow cloning
- C. Both of above
- D. None of above
Explanation: Deep cloning copies an object and recursively copies the objects referenced by its fields, so the clone has independent constituent parts.
Correct answer: Deep cloning- A. java Disassemble
- B. java Interpreter
- C. java compiler
- D. java debugger
Explanation: `jdb` is Java's command-line debugger, used to set breakpoints, inspect variables, and step through program execution.
Correct answer: java debugger- A. Byte code
- B. First code
- C. Mid code
- D. None of above
Explanation: Java source is compiled into bytecode, which is stored in `.class` files and executed by the Java Virtual Machine.
Correct answer: Byte code- A. Final class
- B. abstract class
- C. parent class
- D. None of above
Explanation: A class declared `final` cannot be extended, which prevents inheritance from that class.
Correct answer: Final class- A. moderate typed
- B. strogly typed
- C. weakly typed
- D. none of these
Explanation: Java is strongly typed because variables and expressions have defined types, and incompatible assignments generally require explicit…
Correct answer: strogly typed- A. None
- B. One
- C. Two
- D. Many
Explanation: A .NET DLL is an assembly that can contain multiple types, including many classes, interfaces, structures, and other metadata.
Correct answer: Many- A. Threading
- B. AppDomain
- C. RCW
- D. Serialization
Explanation: Serialization converts an object into a storable or transmissible representation, such as a byte stream, while deserialization…
Correct answer: Serialization- A. CORBA toolkit
- B. COM/DCOM toolkit
- C. ORE toolkit
- D. OLE DB toolkit
Explanation: GNOME historically used CORBA for communication between desktop components, commonly through the ORBit implementation.
Correct answer: CORBA toolkit- A. Layer 4 protocols
- B. Layer 5 protocols
- C. Layer 6 protocols
- D. Layer 7 protocols
Explanation: OSI Layer 7, the application layer, provides network services directly to user applications, including file transfer and network…
Correct answer: Layer 7 protocols- A. fdisk
- B. fsck
- C. dd
- D. rawrite
Explanation: The `dd` command copies data byte by byte between devices or image files, so it can write a boot image directly to a floppy.
Correct answer: dd- A. utilinux
- B. cempre
- C. switchdesk
- D. window
Explanation: `switchdesk` was a Red Hat Linux utility for selecting the default X Window desktop environment, such as KDE or GNOME.
Correct answer: switchdesk- A. path
- B. pwd
- C. prompt $p$g
- D. dir
Explanation: `pwd` means print working directory and displays the full path of the directory in which the shell is currently operating.
Correct answer: pwd