0% found this document useful (0 votes)
93 views

Soft - Verif7thexam - Exam2021 2

This document contains a practice exam for a software engineering course. It includes 10 multiple choice questions testing concepts like testing criteria, test plans, and the V-model. It also includes 3 programming tasks - writing test cases for a library search and download scenario, and identifying faults in a Java code segment. The exam tests students' understanding of software testing principles and their ability to write test cases and identify code issues.
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)
93 views

Soft - Verif7thexam - Exam2021 2

This document contains a practice exam for a software engineering course. It includes 10 multiple choice questions testing concepts like testing criteria, test plans, and the V-model. It also includes 3 programming tasks - writing test cases for a library search and download scenario, and identifying faults in a Java code segment. The exam tests students' understanding of software testing principles and their ability to write test cases and identify code issues.
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/ 4

ARAB ACADEMY OF SCIENCE & Acad.

Year : 2020/ 2021


TECHNOLOGY

College of Computing & Information Term : Second


Technology
No. Questions : 3
Department : Software Engineering Date : 13 /4/2020

Instructor : Prof. Mostafa Abdel Aziem Time Allowed : 75 Min

SE 492 Software verification

Student ID: Student Name:

[ 10 Marks] Q1. Answer the following questions:


1. . How much testing is enough?”
a. This question is impossible to answer
b. This question is easy to answer
c. The answer depends on the risk for your industry, contract and special requirements
d. This answer depends on the maturity of your developers
2. One Key reason why developers have difficulty testing their own work is :
a. Lack of technical documentation
b. Lack of test tools on the market for developers
c. Lack of training
d. Lack of Objectivity
3 . When should testing be stopped?
a. when all the planned tests have been run
b. when time has run out
c..when all faults have been fixed correctly
d .it depends on the risks for the system being tested
4. Functional system testing is:
a) testing that the system functions with other systems
b) testing that the components that comprise the system function together
c) testing the end to end functionality of the system as a whole
d) testing the system performs functions within specified response times
5. The difference between re-testing and regression testing is:
a. re-testing ensures the original fault has been removed; regression testing looks for
unexpected side-effects
b, re-testing looks for unexpected side-effects; regression testing ensures the original fault has
been removed
c. re-testing is done after faults are fixed; regression testing is done earlier
d. re-testing is done by developers; regression testing is done by independent testers.

6. Could reviews or inspections be considered part of testing?


a) no, because they apply to development documentation
b) no, because they are normally applied before testing
c) yes, because both help detect faults and improve quality
d) yes, because testing includes all non-constructive activities

Page 1 of 4
7. Which of the following is not included in Test Plan.
A. Features to be tested.

B. Environmental needs.

C. Suspension criteria.

D. Expected results.

8. Which one of the following statements about system testing is NOT true?
a) System tests are often performed by independent teams.

b) Functional testing is used more than structural testing.

c) Faults found during system tests can be very expensive to fix.

d) End-users should be involved in system tests.

9. Which of the following is true of the V-model?


a) It states that modules are tested against user requirements.

b) It only models the testing phase.

c) It specifies the test techniques to be used.

d) It includes the verification of designs.

10. A test design technique is a.


a. a process for selecting test cases
b. a process for determining expected outputs
c. a way to measure the quality of software
d. a way to measure in a test plan what has to be done

[4 Marks] Q2. For the following scenario carries out the instructions in the steps list for what
you should test? Write the test cases to covering the requirements for what you test?

An Egyptian student asked to write about Egyptian history including revolutions in the period
from 1952-2015. He needs to search from different libraries. He log in to the library system and
uses the search facility. He discovers different sources of information, then he downloads them
but some of this information needs confirmation from the authors so he needs to mail them to
ask for permission.

1. Test Case 1: Verify that the login functionality works correctly.


o Input: Valid username and password
o Expected Output: Login successful and access granted to the library system.
2. Test Case 2: Verify that the search facility returns relevant information.

Page 2 of 4
oInput: Egyptian history, including revolutions from 1952-2015
oExpected Output: The search results display a list of relevant books or articles on
the topic.
3. Test Case 3: Verify that the student can download the information.
o Input: Click on the download button for a selected article.
o Expected Output: The article downloads successfully on the student's device.
4. Test Case 4: Verify the verification process to ensure that the downloaded information is
from a reliable source.
o Input: Downloaded information
o Expected Output: The student can verify the author's credentials by checking their
website, previous publications, or contacting them.
5. Test Case 5: Verify the email functionality of the library system to ensure that the student
can send emails to the authors.
o Input: Click on the Email button to contact an author
o Expected Output: The email is successfully sent, and the author receives it.

[6 Marks]Q3. What are the faults of the following Java program segments:? Indicate the
type of each Fault and correct it.

static void main ( )

int a ,b , c ;

While (A< b)

b = c +3*a ;

a= a+1;

if (b == 0)

b ++;

break;

else if c < 0)

c = b*2;

Page 3 of 4
Continue;

A = A + 1;

Indicate the unreachable code.none


 Calculate the length of the above code segments. 11 lines
 Compute the Complexity simple
Calculate the bug of the above code segments. There are several syntax
errors, but no logical errors that would interfere with the
program's execution.

Good Luck

Page 4 of 4

You might also like