Technical Questions

Q:

Which of the following statement is true?

A) Cohesion is the OO principle most closely associated with hiding implementation details B) Cohesion is the OO principle most closely associated with making sure that classes know about other classes only through their APIs
C) Cohesion is the OO principle most closely associated with making sure that a class is designed with a single, well-focused purpose D) None
 
Answer & Explanation Answer: C) Cohesion is the OO principle most closely associated with making sure that a class is designed with a single, well-focused purpose

Explanation:

A refers to encapsulation, B refers to coupling

Report Error

View Answer Report Error Discuss

Filed Under: Programming

4 14396
Q:

public abstract interface Frobnicate { public void twiddle(String s); } 

Which is a correct class?

A) public abstract class Frob implements Frobnicate { public abstract void twiddle(String s) { } } B) public abstract class Frob implements Frobnicate { }
C) public class Frob extends Frobnicate { public void twiddle(Integer i) { } } D) public class Frob implements Frobnicate { public void twiddle(Integer i) { } }
 
Answer & Explanation Answer: B) public abstract class Frob implements Frobnicate { }

Explanation:

B is correct, an abstract class need not implement any or all of an interface’s methods

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 15672
Q:

Which command displays the present workig directory in UNIX?

A) $who B) $pwd
C) $who are you D) None
 
Answer & Explanation Answer: B) $pwd

Explanation:

$pwd - present working directory

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

0 3784
Q:

Which among the following are the components of windows registry?

A) Keys B) SubKeys
C) Values D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above listed are the components of Windows registry

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

0 3239
Q:

The SQL statements that take care of security and authorization are

A) DDL B) DML
C) DCL D) None
 
Answer & Explanation Answer: C) DCL

Explanation:

Data Control Language takes caare of security and authorization

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

0 2278
Q:

Of the following tree structure, which is, efficient considering space and time complexities?

A) Incomplete Binary Tree B) Complete Binary Tree
C) Full Binary Tree D) None
 
Answer & Explanation Answer: B) Complete Binary Tree

Explanation:

Full binary tree loses its nature when operations of insertions and deletions are done. For incomplete binary trees, extra storage is required and overhead of NULL node checking takes place. So complete binary tree is the better one since the property of complete binary tree is maintained even after operations like additions and deletions are done on it.

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

6 6745
Q:

What is the type of the algorithm used in solving the 8 Queens problem ?

A) Dynamic Programming B) BackTracking
C) Branch and Bound D) None
 
Answer & Explanation Answer: B) BackTracking

Explanation:

BackTracking is used for solving N-Queens problem

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

1 5379
Q:

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where the old one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar games.Chess Bob's CLASSPATH is set (at login time) to: /usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar What is a possible location for the Chess.class file?

 

A) /test/Chess.class B) /home/bob/Chess.class
C) /test/games/Chess.class D) /user/lib/games/Chess.class
 
Answer & Explanation Answer: D) /user/lib/games/Chess.class

Explanation:

/user/lib/games/Chess.class could be the possible location of the file

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

6 9140