Tag: technology

Questions Related to technology

What is Hybrid Zones ?

  1. port – port traffic

  2. Access is controlled using WWN

  3. Contains ports and WWNs

  4. A collection of Zones


Correct Option: C

How many minimum drives are required to create R5 ( RAID 5) ?

  1. 3

  2. 5

  3. 2

  4. 4


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of RAID 5.

RAID 5 is a redundant array of independent disks that uses block-level striping with distributed parity. It requires a minimum of 3 drives to be created.

Let's go through each option to understand why it is correct or incorrect:

Option A) 3 - This option is correct because RAID 5 requires a minimum of 3 drives. It uses block-level striping with distributed parity, where the data and parity information are distributed across the drives.

Option B) 5 - This option is incorrect because RAID 5 does not require 5 drives. It only requires a minimum of 3 drives.

Option C) 2 - This option is incorrect because RAID 5 cannot be created with only 2 drives. It requires a minimum of 3 drives.

Option D) 4 - This option is incorrect because RAID 5 does not require 4 drives. It only requires a minimum of 3 drives.

The correct answer is Option A) 3. This option is correct because RAID 5 requires a minimum of 3 drives to be created.

  1. SELECT INITCAP(TRIM ('HelloWorld', 1,1)) FROM dual;

  2. SELECT SUBSTR( 'HelloWorld',1) FROM dual;

  3. SELECT LOWER(SUBSTR('HelloWorld', 1, 1) FROM dual;

  4. SELECT LOWER(TRIM ('H' FROM 'HelloWorld')) FROM dual;


Correct Option: D
Explanation:

To solve this question, the user needs to know the basics of SQL SELECT statements and string manipulation functions. The user should be familiar with the INITCAP, TRIM, SUBSTR, and LOWER functions.

Now, let's go through each option and explain why it is right or wrong:

A. SELECT INITCAP(TRIM ('HelloWorld', 1,1)) FROM dual;

This option is incorrect. The TRIM function removes characters from the beginning and end of a string. In this case, the second and third arguments of the TRIM function are incorrect. INITCAP capitalizes the first letter of a string and converts the rest of the string to lowercase. Therefore, this SELECT statement will not return the correct result.

B. SELECT SUBSTR( 'HelloWorld',1) FROM dual;

This option is incorrect. The SUBSTR function returns a substring from a given string. In this case, the function only returns the first character of the string 'HelloWorld'. Therefore, this SELECT statement will not return the correct result.

C. SELECT LOWER(SUBSTR('HelloWorld', 1, 1) FROM dual;

This option is incorrect. The SUBSTR function returns a substring from a given string. In this case, the function only returns the first character of the string 'HelloWorld'. The LOWER function converts the substring to lowercase. Therefore, this SELECT statement will not return the correct result.

D. SELECT LOWER(TRIM ('H' FROM 'HelloWorld')) FROM dual;

This option is correct. The TRIM function removes the character 'H' from the beginning of the string 'HelloWorld'. The LOWER function converts the remaining string to lowercase. Therefore, this SELECT statement will return the correct result.

The Answer is: D

  1. CASE WHEN B IS NOT NULL THEN A ELSE B

  2. CASE WHEN A IS NOT NULL THEN A ELSE B

  3. CASE WHEN A IS NOT NULL THEN B ELSE A

  4. CASE WHEN A IS NOT NULL THEN A ELSE A


Correct Option: B
  1. Both tables have NULL values.

  2. You want all matched data from both tables.

  3. You want all unmatched data from both tables.

  4. You want all unmatched data from one table.


Correct Option: C