Tag: technology

Questions Related to technology

  1. When the allocated time has run out

  2. When all planned tests have been executed

  3. It is dependant on the risks for the item under test

  4. When there are no more faults


Correct Option: C

What is the output? SELECT SUBSTRING('123456', 0, 3)

  1. 123

  2. 12

  3. 123456

  4. 456


Correct Option: B

AI Explanation

To answer this question, you need to understand the SUBSTRING function in SQL.

The SUBSTRING function is used to extract a substring from a given string. It takes three arguments: the input string, the starting position, and the length of the substring to be extracted.

In this case, the input string is '123456'. The starting position is 0, and the length is 3.

Using these arguments, the SUBSTRING function will extract a substring starting from the 0th position (which is the first character) with a length of 3 characters.

So, the output of the SUBSTRING('123456', 0, 3) statement will be '12'.

Therefore, the correct answer is B) 12.

  1. Unit Testing

  2. Maintenance Testing

  3. Non-Functional Systems Testing

  4. User Acceptance Testing


Correct Option: B

What is the output? DECLARE @val CHAR(20) SET @val = ' SQL is cool ' select LEN(@val)

  1. 20

  2. 14

  3. 12

  4. 13


Correct Option: C

AI Explanation

To answer this question, you need to understand the LEN function in SQL.

The LEN function is used to return the number of characters in a specified string. In this case, the specified string is the variable @val, which is set to ' SQL is cool '.

The LEN function will count all characters in the string, including leading and trailing spaces. Therefore, the output of the query select LEN(@val) will be the total number of characters in the string, which is 12.

So, the correct answer is C) 12.