Performance Optimization and Testing

Covers SQL query optimization, database indexing and performance, performance testing tools, load testing, and system performance metrics

20 Questions Published

Questions

Question 1 True/False

We can create a Load Runner script without Recording the application workflow , just by manual coding

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Which of these options is a type of Performance Testing?

  1. Load Testing
  2. Volume Testing
  3. Stress Testing
  4. All Of The Above
Question 3 Multiple Choice (Single Answer)

On a single processor system, if the CPU utilization is u% and a transaction takes a CPU time of t seconds, the overall time including wait time for the transaction to execute is

  1. t*100/(100-u)
  2. t*u/(100-u)
  3. t*100/u
  4. t*u/100
Question 4 Multiple Choice (Single Answer)

A quicksort algorithm to sort n records has a performance proportional of the order of

  1. n
  2. n squared
  3. n log(n)
  4. e raised to n
Question 5 Multiple Choice (Multiple Answers)

Different types of Indexes available

  1. B*Tree
  2. Bitmap
  3. Bmap
  4. Function Based Indexes
Question 6 Multiple Choice (Single Answer)

Leaf nodes of B*Tree index are connected by

  1. Doubly Linked list
  2. Singly linked list
  3. Pointers
  4. Structures
Question 7 Multiple Choice (Multiple Answers)

Different steps in SQL execution

  1. a. Parse
  2. b. Fetch
  3. c. Retrieve
  4. d. Bind
  5. e. Execute
Question 8 True/False

Hard parse is expensive than Soft Parse

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

Ideal Elapsed time for a SQL in OLTP type of Application

  1. Less than 10ms
  2. 100ms
  3. 150ms
  4. 50ms
Question 10 True/False

Usage of Hints is advisable in a SQL statement

  1. True
  2. False
Question 11 True/False

Provision should be there for Blind searches

  1. True
  2. False
Question 12 Multiple Choice (Multiple Answers)

Which of the following can be used as first steps to tune SQL Statements

  1. Explain Plan
  2. Trace
  3. Parse
  4. Bind
Question 13 Multiple Choice (Single Answer)

Ideal Blocks/Row ratio for selecting data from a table . BLocks=Number of BLocks accessed ROws=Number of rows retrieved

  1. 5
  2. 10
  3. 100
  4. 1
Question 14 True/False

Bind variables should be used in SQL statements

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

How many minimum join conditions should exist if a SQL statement has 3 tables

  1. 1
  2. 2
  3. 3
  4. 4
Question 16 True/False

The Oracle optimizer should be controlled in choosing the type of joins

  1. True
  2. False
Question 17 True/False

It is a good practice to update all the columns in a Table, than only changed columns.

  1. True
  2. False
Question 18 True/False

Always fetch all the columns data from the table

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

Which is the Java Profiler developed by TCS

  1. JProfiler
  2. YourKit
  3. Jensor
  4. DataXplod
Question 20 Multiple Choice (Single Answer)

Which is the most popular Performance Testing Tool

  1. Rational Performance Tester
  2. HP Load Runner
  3. JMeter
  4. Open STA