0% found this document useful (0 votes)
59 views13 pages

Technical Exam - Answer

Uploaded by

Mohamed Ehab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views13 pages

Technical Exam - Answer

Uploaded by

Mohamed Ehab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

IQ Test

Name: Period:
Date: Result:

MCQ:-

1- Jack is taller than Peter, and Bill is shorter than Jack. Which of the following
statements would be more accurate?

a- Bill is taller than Peter

b- Peter is taller than Bill

c- Bill is as tall as Peter

d- It is impossible to tell whether Bill or Peter is taller

2- Two people can make 2 bicycles in 2 hours. How many people are needed to make
12 bicycles in 6 hours?

a- 6
b- 4
c- 2
d- 1
e- 0

3- Which one of the five letters is least like the other four?

a- N
b- F
c- A
d- Z
e- E

Page 1
4- Which one of the five is least like the other four?

a- Potato
b- Carrot
c- Bean
d- Corn
e- Apple

5- Which one of the five makes the best comparison? Milk is to glass as letter is to:

a- Stamp
b- Pen
c- Envelope
d- Book
e- Mail

6- The price of an article was cut 20% for sale. By what percent must the discounted
item be increased to again sell the article at the original price?

a- 15%
b- 20%
c- 25%
d- 30%
e- 35%

7- Which one of the five is least like the other four?

a- Cow
b- Tiger
c- Snake
d- Dog
e- Bear

Page 2
8- Which one of the five is least like the other four?

a- Brass
b- Copper
c- Iron
d- Tin
e- Lead

9- LIGHT BULB is to FILAMENT as WHEEL is to:

a- Electricity
b- Road
c- Spoke
d- Automobile
e- Pulley
f- Car

10- Nia, twelve years old, is three times as old as her sister. How old will Nia be when
she is twice as old as her sister?

a- 15
b- 18
c- 16
d- 20
e- 21

11- How many birthdays does the average man have?

a- One
b- Every year

12- If you rearrange the letters "BARBIT," you would have the name of a:

a- Ocean
b- Country
c- State
d- City
e- Animal

Page 3
13- A store reduced the price of one of its products by 25 percent. What percentage of
the reduced price must it be increased by to put the product back to its original price?

a- 23%
b- 20%
c- 33%
d- 35%
e- 40%

14- Which one of the five makes the best comparison? Brother is to sister as niece is to:

a- Mother
b- Daughter
c- Aunt
d- Uncle
e- Nephew

15- Which of the following words is closest in meaning to APPREHENSIVE?

a- Thorough
b- Foolish
c- Anxious
d- Distraught
e- Comprehensive

Page 4
Technical Test

Name: Period:
Date: Result:

MCQ:-

1. Which Testing is performed first?

a. Black box testing


b. White box testing
c. Dynamic testing
d. Static testing

2. Verification and Validation uses __________.


a. Internal and External resources respectively.
b. Internal resources only.
c. External resources only.
d. External and Internal resources respectively.

3. The expected results of the software is

a. Only important in system testing


b. Only used in component testing
c. Most useful when specified in advance
d. Derived from the code.

4. Test cases are created in which phase?

a. Test Specification
b. Test Planning
c. Test Requirement
d. Test Configuration

5. Which testing cannot be performed on first build of the software?

a. Regression testing
b. Retesting.
c. Sanity testing

Page 5
d. Only A and B.
e. All of these

6. Which testing is performed with Planning and Documentation?

a. Ad-hoc testing
b. Monkey testing
c. Fuzz testing
d. End-to-End testing

7. Pesticide Paradox principle of testing says that ______________.

a. Clustering modules contain most of the defects.


b. Finding and Fixing defects does not help if the system built is unstable.
c. Testing is done differently in different context.
d. Test cases needs to be regularly reviewed and revised.

8. Confidence Testing refers to ________.

a. Smoke Testing
b. Retesting
c. Regression Testing
d. All of these

9. Test plans are based on _______.


a. Project Plan
b. Business Plan
c. Support Plan
d. All of these

10. ____________ is done by suddenly increasing the load for a small period of time
and observing the behavior of the system.

a. Stress Testing
b. Load Testing
c. Spike Testing
d. All of these

Page 6
11. Which is not true in case of Unit Testing?

a. It decreases the software development speed.


b. It can’t be expected to catch every error in a program.
c. In this tester evaluates if individual units of source code are fit for use.
d. It is usually conducted by the development team.

12. Focus Testing comes under ______.

a. Performance Testing
b. Acceptance Testing
c. Usability Testing
d. Component Testing

13. STLC is related to which model?

a. Waterfall Model
b. RAD Model
c. V Model
d. Spiral Model

14. Which testing cannot be performed by QA Team?

a. Equivalence Partitioning Testing


b. End-to-end Testing
c. Fuzz Testing
d. Destructive Testing

15. Difference between Retesting and Regression Testing is _________ .

a. Retesting ensures the original fault has been removed where as regression
testing looks for unexpected side-effects.
b. Retesting looks for unexpected side-effects where as regression testing ensures
the original fault has been removed.
c. Retesting is done after faults are fixed where as regression testing is done earlier
d. Retesting is done by developers whereas regression testing is done by
independent testers

Page 7
1) Mention the basic components of defect report format.

The basic components of defect report format include:

 Project Name
 Module Name
 Defect detected on
 Defect detected by
 Defect ID and Name
 Snapshot of the defect
 Priority and Severity status
 Defect resolved by
 Defect resolved on

2) What are the best practices for writing test cases?


 Write test cases with end-users perspective
 Write test steps in a simple way that anyone can follow them easily
 Make the test cases reusable
 Set the priority
 Provide a test case description, test data, expected result, precondition,
postcondition.
 Write invalid test cases along with valid test cases
 Follow proper naming conventions
 Review the test cases regularly and update them if necessary.

3) What are the different levels of testing?


There are mainly four testing levels and they are:

 Unit Testing
 Integration Testing
 System Testing
 Acceptance Testing

Basically, it starts with the Unit Testing phase and ends with Acceptance Testing

4) What is coverage and what are the different types of coverage techniques?
The parameter used in software testing to describe the extent to which the
source code is tested is known as coverage. There are three basic types of
coverage techniques and they are:

1. Statement coverage: It ensures that each line of source code has been executed and
tested.
2. Decision coverage: It assures that every decision (true/false) in the source code has
been executed and tested.
3. Path coverage: Here we ensure that every possible route through a given part of the
code is executed and tested.

Page 8
5) How would you test the login feature of a web application?

There are many ways to test the login feature of a web application:

o Sign in with valid login, Close browser and reopen and see whether you are still
logged in or not.
o Sign in, then log out and then go back to the login page to see if you are truly
logged out.
o Log in, then go back to the same page, do you see the login screen again?
o Session management is important. You must focus on how do we keep track of
logged in users, is it via cookies or web sessions?
o Sign in from one browser, open another browser to see if you need to sign in
again?
o Log in, change the password, and then log out, then see if you can log in again
with the old password.

6) What is the common risk that leads to project failure?

The common risk that leads to a project failure are

 Not having enough human resource


 Testing Environment may not be set up properly
 Limited Budget
 Time Limitations

7) What are the benefits of Automation testing?

Benefits of Automation testing are:

1. Supports execution of repeated test cases


2. Aids in testing a large test matrix
3. Enables parallel execution
4. Encourages unattended execution
5. Improves accuracy thereby reducing human-generated errors
6. Saves time and money

8) What are the different types of locators in Selenium?

The locator is nothing but an address that identifies a web element uniquely
within the webpage. Thus, to identify web elements accurately and precisely we
have different types of locators in Selenium as follows:

 ID

Page 9
 ClassName
 Name
 TagName
 linkText
 PartialLinkText
 Xpath
 CSS Selector
 DOM

9) Briefly explain what does below code snippet indicate?

WebElement sample = driver.findElement(By.xpath("//*[contains(text(), 'data')]"));

It defines a variable sample of type WebElement, and uses an XPath search to


initialize it with a reference to an element that contains the text value “data”.

10)What is the difference between Epic, User stories & Tasks?

User Stories: It defines the actual business requirement. Generally created by the
business owner.
Task: To accomplish the business requirements development team create tasks.
Epic: A group of related user stories is called an Epic.

11)What are the main roles in the scrum?

1. Scrum Team: Scrum team is made by an individual person who works collectively to
achieve a particular task. The team works in a bond to deliver committed and
requested products.
2. Scrum Master: Scrum Master is responsible for the proper execution or working of
the scrum team. Being a servant – leader and a coach, he ensures the proper
productivity of a team towards scrum sprint goal.
3. Product Owner: The product owner has the responsibility to deliver a complete
picture of what to build and to convey that idea to the team.

12)Explain what is a story point in the scrum?


It can be considered as a unit to estimate the total efforts required to complete or to do
the particular task or implementing a backlog

13)Explain the difference between a traditional Waterfall model and Agile testing?

Agile testing is done parallel to the development activity whereas a traditional


waterfall model testing is done at the end of the development.
As done in parallel, agile testing is done on small features whereas, in a waterfall
model, testing is performed on the whole application.

Page 10
14)What is Test Driven Development (TDD)?

It is a Test-first development technique in which we add a test first before we write the
complete production code. Next, we run the test and based on the result refactor the
code to fulfill the test requirement.

15)Name some most commonly used HTTP methods for API?

Some of the HTTP methods are


GET: It enables you to retrieve data from a server
POST: It enables you to add data to an existing file or resource in a server
PUT: It lets you replace an existing file or resource in a server
DELETE: It lets you delete data from a server
PATCH: It is used to apply partial modifications to a resource
OPTIONS: It is used to describe the communication options for the target
resource
HEAD: It asks for a response identical to that of a GET request, but
without the response body

16)State the differences between HAVING and WHERE clauses.

Basis for WHERE HAVING


Comparison
Implemented in Row operations Column operations
Applied to A single row The summarized row or groups
Used for Fetching specific data from Fetching the entire data and
specific rows according to the separating according to the given
given condition condition
Aggregate Cannot have them Can have them
functions
Statements Can be used with SELECT, Cannot be used without a SELECT
UPDATE, and DELETE statement
GROUP BY Comes after the WHERE clause Comes before the HAVING clause
clause

17) How would you find the second highest salary from the below table?

Page 11
Code:
select * from employee
select max(e_salary) from employee where e_salary not in (select
max(e_salary) from employee)

Output:

18)What is the difference between DELETE and TRUNCATE commands?

DELETE: This query is used to delete or remove one or more existing tables.

TRUNCATE: This statement deletes all the data from inside a table.

19)What is wrong with the below-given SQL query?

SELECT gender, AVG(age) FROM employee WHERE AVG(age)>30 GROUP BY


gender

select e_gender, avg(e_age) from employee group by e_gender


having avg(e_age)>30

Page 12
20)Describe how to delete duplicate rows using a single statement but without any table
creation.

Employee table where column names are ID, NAME, DEPARTMENT, and EMAIL. As
below:-

DELETE e1 FROM EMPLOYEE e1, EMPLOYEE e2 WHERE e1.name = e2.name


AND e1.id > e2.id

Page 13

You might also like