Web Design and Development MCQs with Answers
Practice important Web Design and Development MCQs with answers and explanations.
Multiple Choice Questions
Q381: What does the join() method do in Java?
- A: It makes the current thread wait for another thread to complete
- B: It starts a new thread
- C: It stops the execution of the current thread
- D: It increases the priority of the thread
View Answer
A
Q382: A ___________ defines the way and method of communication between two parties.
- A: Compiler
- B: Protocol
- C: Tool
- D: Technique
View Answer
B
Q383: What is the output of the DelayEx class?
- A: The main thread goes to sleep and then resumes
- B: The main thread immediately finishes execution
- C: The main thread throws an exception
- D: The main thread prints an error message
View Answer
A
Q384: What is the correct way to instantiate a Thread object with a Runnable task?
- A: new Thread(new Task())
- B: new Task(new Thread())
- C: new Task()
- D: new Thread()
View Answer
A
Q385: Which method is used to handle interruptions during sleep?
- A: sleep()
- B: yield()
- C: run()
- D: join()
View Answer
A
Q386: What is the primary purpose of a web application?
- A: To facilitate remote user interactions
- B: To manage local file systems
- C: To perform offline calculations
- D: To handle hardware resources
View Answer
A
Q387: What protocol is commonly used for web communication between client and server?
- A: FTP
- B: HTTP
- C: SMTP
- D: TCP
View Answer
B
Q388: What is a key characteristic of HTTP communication?
- A: Stateless request-response model
- B: Continuous data stream
- C: Persistent connection
- D: Binary data transfer
View Answer
A
Q389: What is contained in the body of an HTTP request?
- A: Data sent by the client
- B: Status code of the response
- C: Server configuration details
- D: Client software version
View Answer
A
Q390: What does the HTTP status code 404 indicate?
- A: Resource not available
- B: Request requires authentication
- C: Resource moved permanently
- D: Server error
View Answer
A