Tag: web technology

Questions Related to web technology

Whenever the "&&" operator is used, such as in: exp1 && exp2 where exp1 and exp2 are boolean expressions, both the boolean expressions are not always evaluated

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, you need to understand how the "&&" operator works in boolean expressions.

The "&&" operator is known as the logical AND operator. It returns true if both of its operands are true, and false otherwise.

In the expression "exp1 && exp2", the "&&" operator uses short-circuit evaluation. This means that if the value of exp1 is false, the value of exp2 is not evaluated because the overall result of the expression will already be false. This is because for the logical AND operator to return true, both operands must be true.

Therefore, when using the "&&" operator, if exp1 evaluates to false, exp2 is not evaluated, thus saving unnecessary computation.

Hence, the statement "both the boolean expressions are not always evaluated" is true.

The correct answer is A) True.

An array in the Java programming language has the ability to store many different types of values.

  1. True

  2. False


Correct Option: B

Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what will be the values of x, y and z?

  1. x = 4, y = 1, z = 5

  2. x = -7, y = 1, z = 5

  3. x = 4, y = 2, z = 6

  4. x = 3, y = 2, z = 6


Correct Option: D
  1. mapping file

  2. mapping-file

  3. session-factory

  4. session


Correct Option: C
  1. Sets the application-level default channels to use for all services

  2. Contains a service adapter definition

  3. Fully qualified name of the Java class that provides the adapter functionality

  4. Indicates whether this adapter is the default adapter for service destinations.


Correct Option: A
  1. Dispatched when a component has been created in a rough state, and no children have been created.

  2. Dispatched when the component has been laid out and the component is visible (if appropriate).

  3. Dispatched when a component and all its children have been created, but before the component size has been determined

  4. Dispatched when a component has been updated


Correct Option: C
  1. Transperancy

  2. Brightness

  3. Space

  4. Relative Height/Width


Correct Option: A