wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UTSPPL

Total questions: 100

Worksheet time: 1hrs 15mins

Name
Class
Date
1.

Apa unit terkecil dari suatu Test/Target pada Unit Testing

a)

Constant & Variables

b)

Method & Function

c)

Class

d)

Package

2.

Pengujian yang dilakukan untuk memvalidasi produk melalui feedback dari user disebut..

a)

System Testing

b)

Integration Testing

c)

Unit Testing

d)

User Acceptance Testing

3.

Kapan sebaiknya unit test dibuat ?

a)

Parallel dengan saat developer melakukan coding

b)

Saat aplikasi akan diuji oleh User

c)

Di tahap akhir saat aplikasi telah selesai dibangun

d)

Saat aplikasi telah digunakan oleh User

4.

Pada poin (b), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..

a)

assertEqual

b)

assertTrue

c)

assertFalse

d)

assertNotEqual

5.

Pada poin (c), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..

a)

assertEqual

b)

assertTrue

c)

assertFalse

d)

assertNotEqual

6.

Pada poin (a), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..

a)

assertSame

b)

assertFalse

c)

assertTrue

d)

assertNotSame

7.

Unit testing is done by

a)

Users

b)

Developers

c)

Customers

d)

None of the mentioned

8.

In which of the following testing strategies, a smallest testable unit is the encapsulated class or object?

a)

Unit testing

b)

Integration testing

c)

System testing

d)

None of the mentioned

9.

Which of the following will be the best definition for Testing

a)

Testing is executing Software for the purpose of finding defects

b)

The purpose of testing is to demonstrate that the program is defect free

c)

The purpose of testing is to demonstrate that the program does what it is supposed to do

d)

The goal / purpose of testing is to demonstrate that the program works

10.

Software mistakes during coding are known as

a)

errors

b)

failures

c)

bugs

d)

defects

11.

Unit Testing is

a)

White box testing

b)

Black box testing

c)

End to end testing

d)

Acceptance testing

12.

The workflow of Unit Testing is

a)

create test cases, review/rework, baseline, execute test cases

b)

review/rework, create test cases, baseline, execute test cases

c)

create test cases, baseline, review/rework, execute test cases

13.

What is STLC ?

a)

Software Testing Life Cycle

b)

Software Testing Linear Cycle

c)

Software Testing Logarithm Cycle

14.

What happens during requirement analysis phase in STLC

a)

Identify types of tests to be performed

b)

Gather details about testing priorities and focus

c)

Identify test environment details where testing is supposed to be carried out

d)

All of above

15.

What happens during test case development?

a)

Create test cases,automation script (if applicable)

b)

Create test data (If Test Environment is available)

c)

Review and baseline test cases and scripts

d)

All of above

16.

In which phase do we produce test cases and test scripts?

a)

Requirement Analysis

b)

Test Planning

c)

Test Case Development

d)

Test Execution

17.

In which phase do we choose the test approach and strategy?

a)

Test Planning

b)

Test Execution

c)

Test Cycle Closure

d)

Environment Setup

18.

What is the first stage of STLC

a)

Test Planning

b)

Environment Setup

c)

Test Execution

d)

Requirement Analysis

19.

In which phase testing environments are configured and deployed?

a)

Environment Setup

b)

Test Planning

c)

Requirement Analysis

d)

Test Cycle Closure

20.

In which phase of STLC do we log the defects of the test case failure?

a)

Test Planning

b)

Test Case Development

c)

Test Execution

d)

Test Cycle Closure

21.

What is the purpose of Test Execution phase in STLC?

a)

To review the business and software requirements

b)

To execute test cases in the test environment

c)

To design detailed tests based on software requirements

d)

To setup the test environment

22.

What is the purpose of the Requirements Analysis phase in STLC?

a)

To review the business and software requirements

b)

To execute test cases in the test environment

c)

To prepare various reports for stakeholders

d)

To design detailed tests based on software requirements

23.

What is the main objective of Test Planning in STLC?

a)

To gather a general idea of what needs to be tested

b)

To review the business and software requirements

c)

To design detailed tests based on software requirements

d)

To setup the test environment

24.

What is the purpose of Test Designing phase in STLC?

a)

To review the business and software requirements

b)

To execute test cases in the test environment

c)

To design detailed tests based on software requirements

d)

To setup the test environment

25.

In what phase of the STLC is the risk mitigation document created?

a)

Planning

b)

Requirements

c)

Closure

d)

Design

26.

Beberapa tools populer yang digunakan untuk unit testing adalah (pilih 2 jawaban benar):

a)

Selenium

b)

PHPUnit

c)

Jest

d)

Postman

27.

Apa tujuan utama dari integration testing dalam pengujian perangkat lunak?

a)

Mengidentifikasi kesalahan logika internal

b)

Memastikan unit bekerja sesuai ekspektasi

c)

Memastikan interaksi antar modul berjalan dengan baik

d)

Menguji performa sistem

28.

Skenario integration testing antara login dan dashboard bertujuan untuk memastikan bahwa:

a)

Login gagal jika password salah

b)

Setelah login berhasil, sistem dapat menampilkan halaman dashboard

c)

Pengguna langsung diarahkan ke halaman profil

d)

Modul login bisa berjalan tanpa internet

29.

Mengapa integration testing dilakukan setelah unit testing selesai?

a)

Karena integration testing lebih sederhana daripada unit testing

b)

Karena memastikan setiap unit telah stabil sebelum diuji bersama

c)

Karena unit testing tidak perlu dilakukan terlebih dahulu

d)

Karena integration testing dilakukan oleh end-user

30.

Dalam kasus pengujian login → dashboard → notifikasi, keberhasilan integration testing berarti:

a)

Modul login tidak membutuhkan database

b)

Semua alur dari login hingga muncul notifikasi bekerja secara mulus

c)

Modul dashboard bisa berjalan tanpa login

d)

Sistem mampu mencetak laporan pengujian

31.

Sebutkan tiga jenis loop yang ada di PHP!

a)

do while loop

b)

repeat until loop

c)

for loop, while loop, foreach loop

d)

nested loop

32.

Apa itu variabel dalam PHP?

a)

Variabel dalam PHP adalah tempat penyimpanan data yang dimulai dengan tanda dolar ($) diikuti nama variabel.

b)

Variabel dalam PHP hanya dapat menyimpan angka.

c)

Variabel dalam PHP adalah fungsi yang mengembalikan nilai.

d)

Variabel dalam PHP tidak dapat diubah setelah dideklarasikan.

33.

Bagaimana cara mendeklarasikan fungsi di PHP?

a)

function namaFungsi[] { // kode }

b)

function namaFungsi($parameter) // kode

c)

function namaFungsi($parameter) { // kode }

d)

function namaFungsi($parameter) : void { // kode }

34.

Urutan level pengujian perangkat lunak yang benar adalah

1 System Testing

2 Integration Testing

3 Acceptance Testing

4 Unit Testing

a)

1 - 2 - 3 - 4

b)

4 - 2 - 1 - 3

c)

4 - 3 - 1 - 2

d)

1 - 3 - 4 - 2

35.

Bagaimana cara menguji route di Laravel?

a)

Gunakan 'php artisan route:check' untuk menguji route.

b)

Gunakan 'php artisan route:list' dan PHPUnit untuk menguji route.

c)

Cek file routes/web.php secara manual.

d)

Jalankan 'php artisan serve' untuk melihat route.

36.

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

37.

Which of the following is true

a)

Testing is the same as quality assurance

b)

Testing is a part of quality assurance

c)

Testing is not a part of quality assurance

d)

Testing is same as debugging

38.

What is automated testing?

a)

Automation Testing is a software testing technique that performs using special automated testing software tools to execute a test case suite.

b)

Robots come and use your system

c)

Someone tests it by inputting code

39.
Which tool would you use if a programmer wanted to express algorithm visually?
a)
Flowchart
b)
Pseudocode
c)
Storyboard
d)
Graphical user interface
40.

The items below should be included in test case, except..

a)

Test input

b)

Expected result

c)

Test data

d)

Metric and statistical data

41.

Why SDLC is important for software tester in doing testing work?

a)

to show tester knowledge on software development

b)

to challenge software developer on their chosen SDLC model

c)

easy for tester to plan their schedule, and follow up with the developer work progress

d)

to check if software developer is doing their work correctly

42.

In the Gantt chart, besides listing all the software testing activities, what else should be included?

a)

Code

b)

Task owner for assigned activity

c)

Documentation

d)

Testing tool

43.

Who is the owner of the work products below?

  1. Software Requirement Specification
  2. Software codes
  3. Software Design Specification
a)

Software tester

b)

Test Manager

c)

Test Designer

d)

Software engineer

44.

What is testware?

a)

Testing tool

b)

Shareware in software testing

c)

Test document

d)

Software testing work products, such as data and result

45.
What should be the focus when building assertions in software testing?
a)
Adding assertions for every possible scenario
b)
Identifying the critical aspects of the application's functionality and behavior
c)
Ignoring edge cases
d)
Building assertions based on random criteria
46.
What is the main goal of 'building extra assertions' in software testing?
a)
To skip certain test scenarios
b)
To validate a wider range of scenarios and conditions
c)
To ensure that all test cases pass without any issues
d)
To make test cases shorter and simpler
47.
What should be the focus when deciding to add assertions in software testing?
a)
Adding assertions for every possible scenario
b)
Building assertions based on random criteria
c)
Ignoring edge cases and unusual scenarios
d)
Identifying the critical aspects of the application's functionality and behavior
48.
Which of the following is NOT a benefit of 'building extra assertions' in software testing?
a)
Validating additional aspects of the application's functionality
b)
Making tests overly complex
c)
Improving the quality and reliability of the software
d)
Uncovering potential bugs in edge cases
49.
What is the potential drawback of not 'building extra assertions' in software testing?
a)
Ignoring potential bugs in edge cases
b)
Making tests more comprehensive
c)
Speeding up test execution
d)
Improving the reliability of the software
50.
Why is it important to strike a balance when adding assertions in software testing?
a)
To make tests overly complex
b)
To ensure under-testing of the application
c)
To focus on critical aspects of the application's functionality
d)
To slow down test execution
51.
How does 'building extra assertions' impact the quality and reliability of software?
a)
It has no effect on the software
b)
It improves the quality and reliability by uncovering potential issues
c)
It makes the software less robust
d)
It decreases the reliability of the software
52.

User Acceptance testing is

a)

White box testing

b)

Black box testing

c)

Gray box testing

d)

None of the above

53.

A Type of Functional Testing, which investigates the functions relating to the detection of threats, such as viruses from malicious outsiders.

a)

Security Testing

b)

Recovery Testing

c)

Performance Testing

d)

Functionality Testing

54.

14. Acceptance testing is also known as

a)

a) Grey box testing

b)

b) White box testing

c)

c) Alpha Testing

d)

d) Beta testing

55.

15. Which of the following is non-functional testing?

a)

a) Black box testing

b)

b) Performance testing

c)

c) Unit testing

d)

d) None of the mentioned

56.

When do we say that a test case has passed?

a)

When the test case executes without any error.

b)

When the test case executes and an output is produced.

c)

When the test case executes and output produced matches the expected output.

d)

When the test case executes and output produced can be traced to a requirement.

57.

Which of the following best defines usability testing?

a)

Testing done to ensure that the system looks nice.

b)

Testing done to ensure that the system is fast enough.

c)

Testing done to ensure that the system is available for all users.

d)

Testing done to ensure that the user interface is as specified.

58.

A tester is executing a test to evaluate and it complies with the user requirement for a certain field be populated by using a dropdown box containing a list of values, at that time tester is performing __________ .

a)

White-box Testing

b)

Black-box Testing

c)

Load Testing

d)

Regression Testing

59.

What are the common types of defects found during integration testing?

a)

Syntax errors, logical errors, and runtime errors

b)

Input errors, output errors, and processing errors

c)

Interface errors, data flow errors, and control flow errors

d)

User interface errors, database errors, and network errors

60.

Why is user acceptance testing important in software development?

a)

To ignore the needs of the end users

b)

To ensure that the software meets the requirements and expectations of the end users.

c)

To make the software more complicated for users

d)

To waste time and resources

61.

Apa yang dimaksud dengan Test Automation?

a)

Proses menguji bagaimana program merespons ketika berada di atau mendekati batas-batas yang telah ditetapkan

b)

Proses merancang nilai input yang akan efektif menguji perangkat lunak

c)

Proses menyematkan nilai tes ke dalam skrip eksekusi yang dapat dijalankan

d)

Proses menjalankan tes pada perangkat lunak dan mencatat hasilnya

62.

What techniques should be applied to ensure database reliability?

a)

Testing and evaluation techniques

b)

Graphic design techniques

c)

Marketing strategies

d)

Data encryption methods

63.

What is the main purpose of structure testing in database design?

a)

To ensure the database design aligns with user requirements and ensures data integrity.

b)

To create a visual representation of data flow.

c)

To optimize database performance.

d)

To develop user interfaces for database applications.

64.

Which step ensures proper data entry and validation?

a)

Simulate User Scenarios

b)

Verify Table Structures

c)

Test Input Forms

d)

Run Test Queries

65.

What does the scalability focus area evaluate?

a)

Ability to handle growth in data or users

b)

Speed of data processing

c)

User interface design

d)

Cost of database maintenance

66.

What is the goal of evaluating table design?

a)

To ensure reports are clear

b)

To confirm normalization and absence of redundancy

c)

To optimize query execution times

d)

To assess data entry form usability

67.

Perhatikan script PHP berikut, berfungsi untuk ...

<?php

$link=mysql_connect('localhost', 'root', ' ' ) ;

?>

a)

Tampil data

b)

Ubah data

c)

Simpan data

d)

Hapus data

e)

Koneksi ke database

68.

Script PHP berikut merupakan perintah untuk ...

<?php

$result=mysql_query('SELECT * FROM BUKU');

$row=mysql_fetch_row($result);

echo "$row[0] $row[1] $row[2] $row[3] $row[4]";

?>

a)

Tampil data

b)

Ubah data

c)

Simpan data

d)

Hapus data

e)

Koneksi ke database

69.

What is the full form of API?

a)

Application Programming Interface.

b)

Application Programm

Interface

c)

Applied Program information

d)

Automate Programme Interface

70.

Auth is the Abbreviation for?

a)

Access and Authorization.

b)

Authentication

c)

Authentication and Authorization

d)

All of the Above

71.

Postman is used for?

a)

Testing APIs

b)

Making APIs Workflow.

c)

Sending Requests to APIs

d)

ALL of the above.

72.

What does Authentication mean?

a)

Granting Permission

b)

dropping out details

c)

verifying Identity

d)

All of the Above

73.

What is the status code for Unauthorized?

a)

401

b)

201

c)

404

d)

504

74.

Difference between Unit Test and Integration Test

a)

Unit Test and Integration Test, can be executed simultaneously

b)

In Unit Test, one module or function is tested. While in Integration Test, two or more modules are tested in an integrated way.

c)

In Integration Test, we don't care about the communication within each modules

d)

There is no difference between Unit Test and Integration Test

75.

What are difference between UI and Integration Testing?

a)

A. UI Testing is testing the UI specifically. Integration Testing is to evaluate how different components work together.

b)

B. UI tests are also integration tests.

c)

C. Both A & B are true

d)

D. A is true B is false

76.

Given the code snippet:


def setup

@length = 3.0

@width = 4.0

end

def test_area

assert_equal(12, Rectanglarea(@length, @width))

end

def test_perimeter

assert_equal(14, Rectanglperimeter(@length, @width))

end

What level test is used in this code?

a)

A. The function test is unit test

b)

B. The function test is integration test

c)

C. The function test is UI test

d)

D. None of the above

77.

Given the code snippet:


def setup

@user = users(:user1)

end

test "login with valid credentials" do

get login_path

post login_path, session: { email: 'user@test.com', password: 'password' }

follow_redirect!

assert_select "h1", "Welcome"

end

a)

A. The function test is unit test

b)

B. The function test is integration test

c)

C. The function test is UI test

d)

D. None of the above

78.

What is Continuous Integration (CI) in the context of test automation?

a)

It involves continuously executing automated tests on the production environment.

b)

It is a practice of merging code changes into a shared repository frequently, followed by automated builds and tests.

c)

It refers to running automated tests only during software development phase.

d)

It is a process of deploying software updates manually.

79.

What are some best practices for effective test automation?

a)

Prioritize test cases, maintain test scripts, and ensure test data consistency.

b)

Automate all test cases, ignore test data management, and execute tests only once.

c)

Rely solely on manual testing, avoid version control systems, and execute tests manually

d)

Write complex and lengthy test scripts.

80.

Apa saja yang perlu dites oleh QA pada saat melakukan RESTful API testing?

a)

Response Data, Response Time, Response Status Code, Security

b)

Response Data, Response Time, Response Status Code

c)

Response Time, Response Status Code, Security

81.

Apa yang dapat disimpulkan dari pengaturan dan hasil testing di bawah ini?

Number of Threads (users) : 5000
Ramp-up period (seconds) : 1
Loop Count : 1


Dan menghasilkan report sebagai berikut:
Average : 738
Min : 155
Max : 2228
Throughput : 60.5

a)

Server mampu mengeksekusi 60.5 thread dalam waktu 5000 detik

b)

Server mampu mengeksekusi 60.5 thread dalam waktu 1 detik

c)

Server mampu mengeksekusi 1 thread dalam waktu 60.5 detik

82.

What is mocking in unit testing?

a)

Creating fake objects to simulate the behavior of real objects

b)

Skipping the testing phase altogether

c)

Using real objects in the testing environment

d)

Writing actual code to test the functionality

83.

What is the use of setUp() and tearDown() methods in test fixtures?

a)

To print the test results

b)

To skip the test case

c)

To generate random test data

d)

To set up and clean up the testing environment before and after each test case.

84.

Apa perbedaan antara pengujian fungsional dan pengujian non-fungsional?

a)

Pengujian non-fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem berfungsi sesuai dengan kebutuhan fungsional yang telah ditentukan.

b)

Pengujian fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem berfungsi sesuai dengan kebutuhan fungsional yang telah ditentukan. Pengujian non-fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem memenuhi kebutuhan non-fungsional seperti keamanan, kinerja, dan skalabilitas.

c)

Pengujian fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem berfungsi sesuai dengan kebutuhan non-fungsional yang telah ditentukan.

d)

Pengujian fungsional dan pengujian non-fungsional adalah dua istilah yang merujuk pada hal yang sama.

85.

Apa yang dimaksud dengan kasus pengujian?

a)

Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menemukan kesalahan atau bug.

b)

Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menguji kecepatan atau performa.

c)

Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menemukan kelebihan atau keunggulan.

d)

Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menguji keamanan atau keandalan.

86.

Apa saja langkah-langkah yang perlu dilakukan dalam melakukan pengujian software?

a)

Perencanaan pengujian, Penyusunan kasus uji, Eksekusi pengujian, Pelaporan hasil pengujian, Evaluasi dan analisis hasil pengujian

b)

Perencanaan pengujian, Penyusunan kasus uji, Eksekusi pengujian, Pelaporan hasil pengujian, Evaluasi dan analisis hasil pengujian, Tidak perlu melakukan pengujian software, Melakukan pengujian hanya pada satu bagian software, Melakukan pengujian setelah software diluncurkan

87.

Berapa persen produk diciptakan agar dapat dilakukan beta testing?

a)

75 % - 80 %

b)

80% - 85%

c)

85% - 90%

d)

90% - 95%

88.

Pengujian untuk memverifikasi bahwa semua elemen saling berjalan dengan baik dan fungsi/kinerja secara keseluruhan tercapai dilakukan disebut

a)

Unit Testing

b)

Acceptance Testing

c)

System Testing

d)

Module Testing

89.

Hasil testing apa yang biasa menyebabkan cost of finding and fixing fault yang paling mahal?

a)

Integration Testing

b)

Unit Testing

c)

Late Testing

d)

System Testing

90.

Elemen test case yang digunakan untuk menerangkan kondisi awal penggunaan perangkat lunak adalah ....

a)

validation

b)

result

c)

invalid data

d)

pre conditions

91.

Keterampilan satu ini akan membantu software tester untuk memecah tatanan dari sistem perangkat lunak yang kompleks menjadi unit-unit yang lebih kecil, disebut dengan kemampuan ..

a)

Skill Analisis

b)

Skill Database

c)

Skill Programming

d)

Sklil Communication

92.

Modifikasi pada sebuah fungsi dalam kode program seharusnya tidak mengubah...

a)

ukuran kode program

b)

jumlah variabel

c)

keterbacaan

d)

tampilan

e)

struktur data

93.

Sebuah program tidak mengalami masalah saat dilakukan compile dan dapat menampilkan hasil, tetapi hasilnya tidak sesuai karena rumus yang dimasukkan salah. Pernyataan tersebut merupakan kesalahan...

a)
Syntax Error
b)
Runtime Error
c)
Logical Error
d)
Compilation Error
e)

Semantik error

94.

Kumpulan dari beberapa test case disebut

a)

test group

b)

test Scenario

c)

test oracle

d)

test bed

e)

test unit

95.

Berikut ini yang merupakan definisi dari test case yaitu

a)

memerlukan lebih sedikit sumber daya dan waktu untuk pelaksanaan pengujian

b)

mencakup fungsionalitas end-to-end yang akan diuji

c)

fokus pada apa yang akan diuji

d)

serangkaian tindakan yang dijalankan untuk memverifikasi fitur atau fungsionalitas tertentu

e)

proses pengujian dapat dilakukan lebih cepat

96.

Berikut adalah langkah-langkah fundamental test proses

A. Test Analysis and Design

B. Test Planning and Control

C. Evaluating Exit Criteria and Reporting

D. Test Implementation and Execution

E. Test Closure

Urutan manakan yang benar?

a)

A-B-D-E-C

b)

A-B-C-E-D

c)

A-B-D-C-E

d)

B-A-D-E-C

e)

B-A-D-C-E

97.

Functional testing terdiri dari

a)

Unit testing, Integration testing, Performance testing

b)

Unit testing, Integration testing, System testing

c)

Unit testing, Integration testing, Usability testing

d)

Unit testing, Integration testing, Compatibility testing

e)

Unit testing, Integration testing, Scalability testing

98.

Sedangkan, kemampuan software yang dikembangkan agar dapat diintegrasikan antara satu sistem dengan sistem lainnya. Hal ini disebut

a)

correctness

b)

reliability

c)

usability

d)

integrity

e)

interopability

99.

How do you create an array in PHP?

a)

$cars = array("Volvo","BMW","Toyota");

b)

$cars = "Volvo","BMW","Toyota";

c)

$cars = array["Volvo","BMW","Toyota"];

100.

How do you get information from a form that is submitted using the "get" method?

a)

Request.QueryString;

b)

Request.Form;

c)

$_GET[];