Deck 4: Java Exception Handling and Inputoutput Operations
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
العب
ملء الشاشة (f)
Deck 4: Java Exception Handling and Inputoutput Operations
1
Which exception is thrown by read() method?
A)IOException
B)InterruptedException
C)SystemException
D)SystemInputException
A)IOException
B)InterruptedException
C)SystemException
D)SystemInputException
IOException
2
Which is the super class of all exception classes
A)Exception
B)Object
C)Error
D)Throwable
A)Exception
B)Object
C)Error
D)Throwable
Throwable
3
Which class is the super class of all classes of the java.lang package?
A)Object
B)System
C)Super
D)Class
A)Object
B)System
C)Super
D)Class
Object
4
Which of the following exception is raised when a number is divided by zero
A)NumberFormatException
B)ArithmeticException
C)NullPointerException
D)IllegalArgumentException
A)NumberFormatException
B)ArithmeticException
C)NullPointerException
D)IllegalArgumentException
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
A single try block must be followed by which of these?
A)finally
B)catch
C)catch or finally
D)None of the mentioned
A)finally
B)catch
C)catch or finally
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of these exceptions will occur if we try to access the index of an array beyond its length?
A)ArithmeticException
B)ArrayException
C)ArrayIndexException
D)ArrayIndexOutOfBoundsException
A)ArithmeticException
B)ArrayException
C)ArrayIndexException
D)ArrayIndexOutOfBoundsException
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Runnable is a
A)Class
B)Method
C)Variable
D)Interface
A)Class
B)Method
C)Variable
D)Interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Thread priority in Java is represented as?
A)int
B)Float
C)double
D)long
A)int
B)Float
C)double
D)long
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of these class is used to make a thread?
A)String
B)System
C)Thread
D)Runnable
A)String
B)System
C)Thread
D)Runnable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which of these interface is implemented to create a Thread?
A)Runnable
B)Connections
C)Set
D)MapConnections
A)Runnable
B)Connections
C)Set
D)MapConnections
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which of these method of Thread class is used to find out the priority given to a thread?
A)get()
B)ThreadPriority()
C)getPriority()
D)getThreadPriority()
A)get()
B)ThreadPriority()
C)getPriority()
D)getThreadPriority()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of this method of Thread class is used to change the state of a thread to blocked state?
A)sleep()
B)terminate()
C)stop()
D)block()
A)sleep()
B)terminate()
C)stop()
D)block()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which method in Thread class is used to check weather a thread is still running?
A)isAlive()
B)Join()
C)isRunning()
D)Alive()
A)isAlive()
B)Join()
C)isRunning()
D)Alive()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of these methods is used to begin the execution of a thread?
A)run()
B)start()
C)runThread()
D)startThread()
A)run()
B)start()
C)runThread()
D)startThread()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which of these method waits for the thread to treminate?
A)sleep()
B)isAlive()
C)join()
D)stop()
A)sleep()
B)isAlive()
C)join()
D)stop()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of these is used to read a string from the input stream?
A)get()
B)getLine()
C)read()
D)readLine()
A)get()
B)getLine()
C)read()
D)readLine()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which of these classes is used to read characters and strings in Java from console?
A)BufferedReader
B)StringReader
C)BufferedStreamReader
D)InputStreamReader
A)BufferedReader
B)StringReader
C)BufferedStreamReader
D)InputStreamReader
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of these classes are used by Byte streams for input operation?
A)InputStream
B)InputOutputStream
C)Reader
D)All of the mentioned
A)InputStream
B)InputOutputStream
C)Reader
D)All of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of these class contains the methods print() & println()?
A)System
B)System.out
C)BufferedOutputStream
D)PrintStream
A)System
B)System.out
C)BufferedOutputStream
D)PrintStream
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of these methods can be used to write console output?
A)printout()
B)println()
C)write()
D)All of the mentioned
A)printout()
B)println()
C)write()
D)All of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of these classes are used by character streams output operations?
A)OutputStream
B)Writer
C)ReadStream
D)InputOutputStream
A)OutputStream
B)Writer
C)ReadStream
D)InputOutputStream
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which refers to a channel through which data flow from the source to the destination:
A)String
B)Character
C)Stream
D)Buffer
A)String
B)Character
C)Stream
D)Buffer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Java Stream classes can be categorized into two groups:
A)Byte and Character Stream Classes
B)Stream and String Classes
C)String and Character Stream Classes
D)Buffer and Character Stream Classes
A)Byte and Character Stream Classes
B)Stream and String Classes
C)String and Character Stream Classes
D)Buffer and Character Stream Classes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Byte Stream Classes support input/output operations on _____
A)8 bit
B)16 bit
C)32 bit
D)64 bit
A)8 bit
B)16 bit
C)32 bit
D)64 bit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Character Stream Classes support input/output operations on _______ characters:
A)8 bit Unicode
B)16 bit Unicode
C)32 bit Unicode
D)64 bit Unicode
A)8 bit Unicode
B)16 bit Unicode
C)32 bit Unicode
D)64 bit Unicode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck