Tag: technology

Questions Related to technology

  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

Given: 1. public class Person { 2. private String name; 3. public Person(String name) { this.name = name; } 4. public boolean equals(Person p) { 5. return p.name.equals(this.name); 6. } 7. } Which statement is true?

  1. The equals method does NOT properly override the Object.equals method.

  2. Compilation fails because the private attribute p.name cannot be accessed in line 5.

  3. To work correctly with hash-based data structures, this class must also implement the hashCode method.

  4. When adding Person objects to a java.util.Set collection, the equals method in line 4 will prevent duplicates.


Correct Option: A

Given: 1. public class Person { 2. private String name; 3. public Person(String name) { this.name = name; } 4. public boolean equals(Person p) { 5. return p.name.equals(this.name); 6. } 7. } Which statement is true?

  1. The equals method does NOT properly override the Object.equals method.

  2. Compilation fails because the private attribute p.name cannot be accessed in line 5.

  3. To work correctly with hash-based data structures, this class must also implement the hashCode method.

  4. When adding Person objects to a java.util.Set collection, the equals method in line 4 will prevent duplicates.


Correct Option: A
  1. MS office

  2. IE

  3. Windows Mail

  4. Windows Media Player


Correct Option: B

If windows pc is not restarted for a long time

  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
  1. Format Report

  2. Define Function Code

  3. Hold Segment for manipulation

  4. All of the above


Correct Option: C
  1. Only one

  2. Only two

  3. Only Five

  4. As Many


Correct Option: D

Given: 1. import java.util.*; 2. public class Old { 3. public static Object get0(List list) { 4. return list.get(0); 5. } 6. } Which three will compile successfully? (Choose three.)

  1. Object o = Old.get0(new LinkedList());

  2. Object o = Old.get0(new LinkedList>());

  3. String s = Old.get0(new LinkedList());

  4. Object o = Old.get0(new LinkedList());

  5. String s = (String)Old.get0(new LinkedList());


Correct Option: A,D,E