Home / Programming Questions / Page 1889

Prgramming MCQs Feed | Page - 1889

(A) to return from the calling functions to called function
(B) to throw an exception manually during the execution of the program
(C) to return from the switch statement
(D) None of the above

(A) search
(B) find
(C) findall
(D) locate

(A) 8
(B) 32
(C) 16
(D) 64

(A) current directory
(B) change directory
(C) created directory
(D) complete directory

(A) TRUNCATE
(B) DROP
(C) REMOVE
(D) DELETE

Code:
    abstract class MyFirstClass  
    {  
         abstract num (int a, int b) {  }  
    }  
(A) Method is not defined properly
(B) No error
(C) Extra parentheses
(D) Constructor is not defined properly

(A) =
(B) +
(C) <<
(D) >>

Code:
 public class Test
 { 
       public static void main(String[] args)
 { 
             byte b = 6; 
             b+=8;
             System.out.println(b);
             b = b+7;
             System.out.println(b); 
       } 
 }
(A) 14 21
(B) 14 13
(C) Compilation fails with an error at line 6
(D) None of these