Sail E0 Webinar

MCQs

Total Questions : 47 | Page 5 of 5 pages
Question 41.

Which of these is used to perform all input & output operations in Java?


  1.    streams
  2.    Variables
  3.    classes
  4.    Methods
 Discuss Question
Answer: Option A. -> streams

Like in any other language, streams are used for input and output operations.


Question 42.

Which of these packages contains all the classes and methods required for 

even handling in Java?


  1.    java.applet
  2.    java.awt
  3.    java.event
  4.    java.awt.event
 Discuss Question
Answer: Option D. -> java.awt.event

Most of the event to which an applet responds is generated by user. Hence they 

are in Abstract Window Kit package, java.awt.event.


Question 43.

Which of these keywords is not a part of exception handling?


  1.    try
  2.    finally
  3.    thrown
  4.    catch
 Discuss Question
Answer: Option C. -> thrown

Exceptional handling is managed via 5 keywords - try, catch, throws, throw and finally.

Question 44.

Which of these package contains classes and interfaces for networking?


  1.    java.io
  2.    java.util
  3.    java.net
  4.    java.network
 Discuss Question
Answer: Option C. -> java.net

None.

Question 45.

What is multithreaded programming?


  1.    It's a process in which two different processes run simultaneously.
  2.    It's a process in which two or more parts of same process run simultaneously.
  3.    Its a process in which many different process are able to access same information.
  4.    Its a process in which a single process can access information from many sources.
 Discuss Question
Answer: Option B. -> It's a process in which two or more parts of same process run simultaneously.

multithreaded programming a process in which two or more parts of same process run 

simultaneously.


Question 46.

What does AWT stands for?


  1.    All Window Tools
  2.    All Writing Tools
  3.    Abstract Window Toolkit
  4.    Abstract Writing Toolkit
 Discuss Question
Answer: Option C. -> Abstract Window Toolkit

AWT stands for Abstract Window Toolkit, it is used by applets to interact with the user.


Question 47.

When does Exceptions in Java arises in code sequence?


  1.    Run Time
  2.    Compilation Time
  3.    Can Occur Any Time
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Run Time

Exceptions in java are run-time errors.


Latest Videos

Latest Test Papers