0

testing Online Quiz - 58

Description: testing Online Quiz - 58
Number of Questions: 20
Created by:
Tags: testing
Attempted 0/20 Correct 0 Score 0

The SQL command used to avoid the selection of duplicate rows is

  1. UNIQUE

  2. DISTINCT

  3. EXCLUSIVE

  4. DISCRETE


Correct Option: B

How do you change the current directory to /usr/local/bin in UNIX?

  1. mv /usr/local/bin

  2. cd /usr/local/bin

  3. setdir /usr/localbin

  4. cd usr/local/bin


Correct Option: B

How do you list all the files that are in the current directory in UNIX?

  1. list all

  2. ls -full

  3. ls -a

  4. ls -all


Correct Option: C

Which of the following is not a valid -ve testing scenario for a job involving data load from a flat file to database table.

  1. Data file not present

  2. Data file too large

  3. Table is accessible to the user

  4. Data in wrong format


Correct Option: C

Which command will delete all data from a table and will not write to the rollback segment?

  1. DROP

  2. DELETE

  3. CASCADE

  4. TRUNCATE


Correct Option: D

AI Explanation

To answer this question, you need to understand the differences between the commands DROP, DELETE, CASCADE, and TRUNCATE in the context of deleting data from a table.

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

Option A) DROP - The DROP command is used to delete an entire table from the database. It not only deletes the data but also removes the table structure and all associated objects. However, it is not the correct command for deleting data from a table without writing to the rollback segment.

Option B) DELETE - The DELETE command is used to delete specific rows from a table based on a given condition. It is commonly used to selectively remove data from a table. However, when using the DELETE command, the deleted data is written to the rollback segment for potential rollback operations.

Option C) CASCADE - The CASCADE keyword is used in conjunction with other commands, such as DROP or ALTER, to specify that the action should be cascaded to dependent objects. It is not a command for deleting data from a table without writing to the rollback segment.

Option D) TRUNCATE - The TRUNCATE command is used to remove all data from a table. It is a fast and efficient way to delete data because it does not generate any rollback information and does not write to the rollback segment. TRUNCATE is the correct command for deleting all data from a table without writing to the rollback segment.

Therefore, the correct answer is D) TRUNCATE. This option is correct because the TRUNCATE command will delete all data from a table without writing to the rollback segment.

Which of the following is/are NOT a typical characteristic of a batch run? select all that apply- multiple answers)

  1. It produces a log file

  2. It take data from a text file

  3. It takes some input and produces output

  4. It is run in backend


Correct Option: B,C

Assuming today is Monday, 10 July 2000, what is returned by this statement: SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;

  1. 03-JUL-00

  2. 10-JUL-00

  3. 12-JUL-00

  4. 11-JUL-00

  5. 17-JUL-00

  6. 09-JUL-00


Correct Option: D

AI Explanation

To determine the answer, let's break down the given statement and understand how it works:

The statement NEXT_DAY(sysdate, 'MONDAY') returns the date of the next occurrence of the day specified, which in this case is 'MONDAY'.

So, when we execute the statement SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;, it will return the date of the next Monday.

Given that today is Monday, 10 July 2000, the next Monday will be on 17 July 2000.

Therefore, the correct answer is E) 17-JUL-00.

How do you print the first 15 lines of all files ending by ".txt" in UNIX?

  1. print 15 .txt

  2. cat *.txt -length=15

  3. head -15 *.txt

  4. tail -15 *.txt


Correct Option: C

How do you rename file "new" in file "old" in UNIX?

  1. mv new old

  2. cp new old

  3. rn new old

  4. rename new old


Correct Option: A

How do you create a new directory called "flower" in UNIX?

  1. newdir flower

  2. mkdir flower

  3. crdir flower

  4. crtdir flower


Correct Option: B
Explanation:

To create a new directory called "flower" in UNIX, you need to use the "mkdir" command. This stands for "make directory" and is used to create a new directory in the current location.

Let's go through each option and explain why it is right or wrong:

A. newdir flower: This option is incorrect. There is no "newdir" command in UNIX. The correct command to create a new directory is "mkdir".

B. mkdir flower: This option is correct. By typing "mkdir flower", a new directory called "flower" will be created in the current location.

C. crdir flower: This option is incorrect. There is no "crdir" command in UNIX. The correct command to create a new directory is "mkdir".

D. crtdir flower: This option is incorrect. There is no "crtdir" command in UNIX. The correct command to create a new directory is "mkdir".

Therefore, the answer is: B. mkdir flower

What are the essential qualities of a batch tester/test analyst?

  1. Basic OS/SQL command knowledge, QC knowledge, Automation expert

  2. Basic OS/SQL command knowledge, Analytical Skills, knowledge of QC

  3. Analytical Skill, Critical of developer's work, Automation expert

  4. Analytical Skills, Basic OS/SQL command knowledge, Critical of developer's work


Correct Option: D

How many columns are presented after executing this query: SELECT address1||','||address2||','||address2 "Adress" FROM employee;

  1. 1

  2. 2

  3. 3

  4. 0

  5. 4


Correct Option: C

What can be the feasible end time for Jobs R & S?

  1. 3:45 & 3:30

  2. 3:30 & 3:45

  3. 3:38 & 3:35

  4. 3:38 & 3:40


Correct Option: C

What can be the start time of Job R?

  1. 00:55

  2. 1.00

  3. 1.05

  4. 3.39

  5. All of the above


Correct Option: B,C

How do you visualize the content of file "not_empty" in UNIX?

  1. type not_empty

  2. cat not_empty

  3. more not_empty

  4. view not_empty


Correct Option: B

What is the command to search all files in your current directory for the word "plasmodium" in UNIX?

  1. grep plasmodium *

  2. find plasmodium -all

  3. lookup plasmodium *

  4. cat plasmodium *


Correct Option: A

The key that is used to Start/End analog recording mode ?

  1. Shift+F3

  2. Shift+F10

  3. Shift+Alt+F3

  4. CTRL+Shift+F3


Correct Option: C

AI Explanation

To answer this question, you need to understand the key combinations used to start or end analog recording mode. Let's go through each option to understand why it is correct or incorrect:

Option A) Shift+F3 - This option is incorrect because Shift+F3 is not the key combination used to start or end analog recording mode.

Option B) Shift+F10 - This option is incorrect because Shift+F10 is not the key combination used to start or end analog recording mode.

Option C) Shift+Alt+F3 - This option is correct because Shift+Alt+F3 is the key combination used to start or end analog recording mode.

Option D) CTRL+Shift+F3 - This option is incorrect because CTRL+Shift+F3 is not the key combination used to start or end analog recording mode.

The correct answer is C. Shift+Alt+F3. This option is correct because it is the key combination used to start or end analog recording mode.

QuickTest supports virtual object for anolog or low-level recording.

  1. True

  2. False

  3. Neither True nor False

  4. Somecases it is true


Correct Option: B
- Hide questions