Tag: technology

Questions Related to technology

  1. MIF,MOF,DIF,DOF

  2. DIF,DOF,MID,MOD

  3. DIF,DOF,MFLD,DFLD

  4. None of the above


Correct Option: B

Given: 1. import java.util.*; 2. public class Example { 3. public static void main(String[] args) { 4. // insert code here 5. set.add(new Integer(2)); 6. set.add(new Integer(1)); 7. System.out.println(set); 8. } 9. } Which code, inserted at line 4, guarantees that this program will output [1, 2]?

  1. Set set = new TreeSet();

  2. Set set = new HashSet();

  3. Set set = new SortedSet();

  4. List set = new SortedList();

  5. Set set = new LinkedHashSet();


Correct Option: A
  1. CPU register is 64 bit

  2. It stores information in hard disk as 64-bit format

  3. Data in main memory stored in 64-bit

  4. OS is developed using 64-bit compiler


Correct Option: C
  1. MS office

  2. IE

  3. Windows Mail

  4. Windows Media Player


Correct Option: B
  1. Memory overflow error may occure

  2. CPU will slow down

  3. Hard disk operations may be very slow

  4. May slow down pc performance due to more memory fragmentation.


Correct Option: D

Given 10. class Foo { 11. static void alpha() { /* more code here / } 12. void beta() { / more code here */ } 13. } Which two statements are true? (Choose two.)

  1. Foo.beta() is a valid invocation of beta().

  2. Foo.alpha() is a valid invocation of alpha().

  3. Method beta() can directly call method alpha().

  4. Method alpha() can directly call method beta().


Correct Option: B,C

Given: 11. public static void parse(String str) { 12. try { 13. float f = Float.parseFloat(str); 14. } catch (NumberFormatException nfe) { 15. f = 0; 16. } finally { 17. System.out.println(f); 18. } 19. } 20. public static void main(String[] args) { 21. parse("invalid"); 22. } What is the result?

  1. 0.0

  2. Compilation fails.

  3. A ParseException is thrown by the parse method at runtime.

  4. A NumberFormatException is thrown by the parse method at runtime.


Correct Option: B

Given: 10. class Line { 11. public static class Point {} 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?

  1. Point p = new Point();

  2. Line.Point p = new Line.Point();

  3. The Point class cannot be instatiated at line 15.

  4. Line l = new Line() ; l.Point p = new l.Point();


Correct Option: B