Font size
WorksheetsUTSPPL
Total questions: 100
Worksheet time: 1hrs 15mins
Apa unit terkecil dari suatu Test/Target pada Unit Testing
Constant & Variables
Method & Function
Class
Package
Pengujian yang dilakukan untuk memvalidasi produk melalui feedback dari user disebut..
System Testing
Integration Testing
Unit Testing
User Acceptance Testing
Kapan sebaiknya unit test dibuat ?
Parallel dengan saat developer melakukan coding
Saat aplikasi akan diuji oleh User
Di tahap akhir saat aplikasi telah selesai dibangun
Saat aplikasi telah digunakan oleh User
Pada poin (b), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..
assertEqual
assertTrue
assertFalse
assertNotEqual
Pada poin (c), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..
assertEqual
assertTrue
assertFalse
assertNotEqual
Pada poin (a), agar menghasilkan hasil test "passed", method assertion yang tepat adalah..
assertSame
assertFalse
assertTrue
assertNotSame
Unit testing is done by
Users
Developers
Customers
None of the mentioned
In which of the following testing strategies, a smallest testable unit is the encapsulated class or object?
Unit testing
Integration testing
System testing
None of the mentioned
Which of the following will be the best definition for Testing
Testing is executing Software for the purpose of finding defects
The purpose of testing is to demonstrate that the program is defect free
The purpose of testing is to demonstrate that the program does what it is supposed to do
The goal / purpose of testing is to demonstrate that the program works
Software mistakes during coding are known as
errors
failures
bugs
defects
Unit Testing is
White box testing
Black box testing
End to end testing
Acceptance testing
The workflow of Unit Testing is
create test cases, review/rework, baseline, execute test cases
review/rework, create test cases, baseline, execute test cases
create test cases, baseline, review/rework, execute test cases
What is STLC ?
Software Testing Life Cycle
Software Testing Linear Cycle
Software Testing Logarithm Cycle
What happens during requirement analysis phase in STLC
Identify types of tests to be performed
Gather details about testing priorities and focus
Identify test environment details where testing is supposed to be carried out
All of above
What happens during test case development?
Create test cases,automation script (if applicable)
Create test data (If Test Environment is available)
Review and baseline test cases and scripts
All of above
In which phase do we produce test cases and test scripts?
Requirement Analysis
Test Planning
Test Case Development
Test Execution
In which phase do we choose the test approach and strategy?
Test Planning
Test Execution
Test Cycle Closure
Environment Setup
What is the first stage of STLC
Test Planning
Environment Setup
Test Execution
Requirement Analysis
In which phase testing environments are configured and deployed?
Environment Setup
Test Planning
Requirement Analysis
Test Cycle Closure
In which phase of STLC do we log the defects of the test case failure?
Test Planning
Test Case Development
Test Execution
Test Cycle Closure
What is the purpose of Test Execution phase in STLC?
To review the business and software requirements
To execute test cases in the test environment
To design detailed tests based on software requirements
To setup the test environment
What is the purpose of the Requirements Analysis phase in STLC?
To review the business and software requirements
To execute test cases in the test environment
To prepare various reports for stakeholders
To design detailed tests based on software requirements
What is the main objective of Test Planning in STLC?
To gather a general idea of what needs to be tested
To review the business and software requirements
To design detailed tests based on software requirements
To setup the test environment
What is the purpose of Test Designing phase in STLC?
To review the business and software requirements
To execute test cases in the test environment
To design detailed tests based on software requirements
To setup the test environment
In what phase of the STLC is the risk mitigation document created?
Planning
Requirements
Closure
Design
Beberapa tools populer yang digunakan untuk unit testing adalah (pilih 2 jawaban benar):
Selenium
PHPUnit
Jest
Postman
Apa tujuan utama dari integration testing dalam pengujian perangkat lunak?
Mengidentifikasi kesalahan logika internal
Memastikan unit bekerja sesuai ekspektasi
Memastikan interaksi antar modul berjalan dengan baik
Menguji performa sistem
Skenario integration testing antara login dan dashboard bertujuan untuk memastikan bahwa:
Login gagal jika password salah
Setelah login berhasil, sistem dapat menampilkan halaman dashboard
Pengguna langsung diarahkan ke halaman profil
Modul login bisa berjalan tanpa internet
Mengapa integration testing dilakukan setelah unit testing selesai?
Karena integration testing lebih sederhana daripada unit testing
Karena memastikan setiap unit telah stabil sebelum diuji bersama
Karena unit testing tidak perlu dilakukan terlebih dahulu
Karena integration testing dilakukan oleh end-user
Dalam kasus pengujian login → dashboard → notifikasi, keberhasilan integration testing berarti:
Modul login tidak membutuhkan database
Semua alur dari login hingga muncul notifikasi bekerja secara mulus
Modul dashboard bisa berjalan tanpa login
Sistem mampu mencetak laporan pengujian
Sebutkan tiga jenis loop yang ada di PHP!
do while loop
repeat until loop
for loop, while loop, foreach loop
nested loop
Apa itu variabel dalam PHP?
Variabel dalam PHP adalah tempat penyimpanan data yang dimulai dengan tanda dolar ($) diikuti nama variabel.
Variabel dalam PHP hanya dapat menyimpan angka.
Variabel dalam PHP adalah fungsi yang mengembalikan nilai.
Variabel dalam PHP tidak dapat diubah setelah dideklarasikan.
Bagaimana cara mendeklarasikan fungsi di PHP?
function namaFungsi[] { // kode }
function namaFungsi($parameter) // kode
function namaFungsi($parameter) { // kode }
function namaFungsi($parameter) : void { // kode }
Urutan level pengujian perangkat lunak yang benar adalah
1 System Testing
2 Integration Testing
3 Acceptance Testing
4 Unit Testing
1 - 2 - 3 - 4
4 - 2 - 1 - 3
4 - 3 - 1 - 2
1 - 3 - 4 - 2
Bagaimana cara menguji route di Laravel?
Gunakan 'php artisan route:check' untuk menguji route.
Gunakan 'php artisan route:list' dan PHPUnit untuk menguji route.
Cek file routes/web.php secara manual.
Jalankan 'php artisan serve' untuk melihat route.
Functional system testing is:
testing that the system functions with other systems
testing that the components that comprise the system function together
testing the end to end functionality of the system as a whole
testing the system performs functions within specified response times
Which of the following is true
Testing is the same as quality assurance
Testing is a part of quality assurance
Testing is not a part of quality assurance
Testing is same as debugging
What is automated testing?
Automation Testing is a software testing technique that performs using special automated testing software tools to execute a test case suite.
Robots come and use your system
Someone tests it by inputting code
The items below should be included in test case, except..
Test input
Expected result
Test data
Metric and statistical data
Why SDLC is important for software tester in doing testing work?
to show tester knowledge on software development
to challenge software developer on their chosen SDLC model
easy for tester to plan their schedule, and follow up with the developer work progress
to check if software developer is doing their work correctly
In the Gantt chart, besides listing all the software testing activities, what else should be included?
Code
Task owner for assigned activity
Documentation
Testing tool
Who is the owner of the work products below?
- Software Requirement Specification
- Software codes
- Software Design Specification
Software tester
Test Manager
Test Designer
Software engineer
What is testware?
Testing tool
Shareware in software testing
Test document
Software testing work products, such as data and result
User Acceptance testing is
White box testing
Black box testing
Gray box testing
None of the above
A Type of Functional Testing, which investigates the functions relating to the detection of threats, such as viruses from malicious outsiders.
Security Testing
Recovery Testing
Performance Testing
Functionality Testing
14. Acceptance testing is also known as
a) Grey box testing
b) White box testing
c) Alpha Testing
d) Beta testing
15. Which of the following is non-functional testing?
a) Black box testing
b) Performance testing
c) Unit testing
d) None of the mentioned
When do we say that a test case has passed?
When the test case executes without any error.
When the test case executes and an output is produced.
When the test case executes and output produced matches the expected output.
When the test case executes and output produced can be traced to a requirement.
Which of the following best defines usability testing?
Testing done to ensure that the system looks nice.
Testing done to ensure that the system is fast enough.
Testing done to ensure that the system is available for all users.
Testing done to ensure that the user interface is as specified.
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 __________ .
White-box Testing
Black-box Testing
Load Testing
Regression Testing
What are the common types of defects found during integration testing?
Syntax errors, logical errors, and runtime errors
Input errors, output errors, and processing errors
Interface errors, data flow errors, and control flow errors
User interface errors, database errors, and network errors
Why is user acceptance testing important in software development?
To ignore the needs of the end users
To ensure that the software meets the requirements and expectations of the end users.
To make the software more complicated for users
To waste time and resources
Apa yang dimaksud dengan Test Automation?
Proses menguji bagaimana program merespons ketika berada di atau mendekati batas-batas yang telah ditetapkan
Proses merancang nilai input yang akan efektif menguji perangkat lunak
Proses menyematkan nilai tes ke dalam skrip eksekusi yang dapat dijalankan
Proses menjalankan tes pada perangkat lunak dan mencatat hasilnya
What techniques should be applied to ensure database reliability?
Testing and evaluation techniques
Graphic design techniques
Marketing strategies
Data encryption methods
What is the main purpose of structure testing in database design?
To ensure the database design aligns with user requirements and ensures data integrity.
To create a visual representation of data flow.
To optimize database performance.
To develop user interfaces for database applications.
Which step ensures proper data entry and validation?
Simulate User Scenarios
Verify Table Structures
Test Input Forms
Run Test Queries
What does the scalability focus area evaluate?
Ability to handle growth in data or users
Speed of data processing
User interface design
Cost of database maintenance
What is the goal of evaluating table design?
To ensure reports are clear
To confirm normalization and absence of redundancy
To optimize query execution times
To assess data entry form usability
Perhatikan script PHP berikut, berfungsi untuk ...
<?php
$link=mysql_connect('localhost', 'root', ' ' ) ;
?>
Tampil data
Ubah data
Simpan data
Hapus data
Koneksi ke database
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]";
?>
Tampil data
Ubah data
Simpan data
Hapus data
Koneksi ke database
What is the full form of API?
Application Programming Interface.
Application Programm
Interface
Applied Program information
Automate Programme Interface
Auth is the Abbreviation for?
Access and Authorization.
Authentication
Authentication and Authorization
All of the Above
Postman is used for?
Testing APIs
Making APIs Workflow.
Sending Requests to APIs
ALL of the above.
What does Authentication mean?
Granting Permission
dropping out details
verifying Identity
All of the Above
What is the status code for Unauthorized?
401
201
404
504
Difference between Unit Test and Integration Test
Unit Test and Integration Test, can be executed simultaneously
In Unit Test, one module or function is tested. While in Integration Test, two or more modules are tested in an integrated way.
In Integration Test, we don't care about the communication within each modules
There is no difference between Unit Test and Integration Test
What are difference between UI and Integration Testing?
A. UI Testing is testing the UI specifically. Integration Testing is to evaluate how different components work together.
B. UI tests are also integration tests.
C. Both A & B are true
D. A is true B is false
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. The function test is unit test
B. The function test is integration test
C. The function test is UI test
D. None of the above
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. The function test is unit test
B. The function test is integration test
C. The function test is UI test
D. None of the above
What is Continuous Integration (CI) in the context of test automation?
It involves continuously executing automated tests on the production environment.
It is a practice of merging code changes into a shared repository frequently, followed by automated builds and tests.
It refers to running automated tests only during software development phase.
It is a process of deploying software updates manually.
What are some best practices for effective test automation?
Prioritize test cases, maintain test scripts, and ensure test data consistency.
Automate all test cases, ignore test data management, and execute tests only once.
Rely solely on manual testing, avoid version control systems, and execute tests manually
Write complex and lengthy test scripts.
Apa saja yang perlu dites oleh QA pada saat melakukan RESTful API testing?
Response Data, Response Time, Response Status Code, Security
Response Data, Response Time, Response Status Code
Response Time, Response Status Code, Security
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
Server mampu mengeksekusi 60.5 thread dalam waktu 5000 detik
Server mampu mengeksekusi 60.5 thread dalam waktu 1 detik
Server mampu mengeksekusi 1 thread dalam waktu 60.5 detik
What is mocking in unit testing?
Creating fake objects to simulate the behavior of real objects
Skipping the testing phase altogether
Using real objects in the testing environment
Writing actual code to test the functionality
What is the use of setUp() and tearDown() methods in test fixtures?
To print the test results
To skip the test case
To generate random test data
To set up and clean up the testing environment before and after each test case.
Apa perbedaan antara pengujian fungsional dan pengujian non-fungsional?
Pengujian non-fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem berfungsi sesuai dengan kebutuhan fungsional yang telah ditentukan.
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.
Pengujian fungsional adalah pengujian yang dilakukan untuk memastikan bahwa sistem berfungsi sesuai dengan kebutuhan non-fungsional yang telah ditentukan.
Pengujian fungsional dan pengujian non-fungsional adalah dua istilah yang merujuk pada hal yang sama.
Apa yang dimaksud dengan kasus pengujian?
Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menemukan kesalahan atau bug.
Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menguji kecepatan atau performa.
Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menemukan kelebihan atau keunggulan.
Kasus pengujian adalah suatu kondisi atau situasi yang digunakan untuk menguji suatu sistem atau program dengan tujuan untuk menguji keamanan atau keandalan.
Apa saja langkah-langkah yang perlu dilakukan dalam melakukan pengujian software?
Perencanaan pengujian, Penyusunan kasus uji, Eksekusi pengujian, Pelaporan hasil pengujian, Evaluasi dan analisis hasil pengujian
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
Berapa persen produk diciptakan agar dapat dilakukan beta testing?
75 % - 80 %
80% - 85%
85% - 90%
90% - 95%
Pengujian untuk memverifikasi bahwa semua elemen saling berjalan dengan baik dan fungsi/kinerja secara keseluruhan tercapai dilakukan disebut
Unit Testing
Acceptance Testing
System Testing
Module Testing
Hasil testing apa yang biasa menyebabkan cost of finding and fixing fault yang paling mahal?
Integration Testing
Unit Testing
Late Testing
System Testing
Elemen test case yang digunakan untuk menerangkan kondisi awal penggunaan perangkat lunak adalah ....
validation
result
invalid data
pre conditions
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 ..
Skill Analisis
Skill Database
Skill Programming
Sklil Communication
Modifikasi pada sebuah fungsi dalam kode program seharusnya tidak mengubah...
ukuran kode program
jumlah variabel
keterbacaan
tampilan
struktur data
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...
Semantik error
Kumpulan dari beberapa test case disebut
test group
test Scenario
test oracle
test bed
test unit
Berikut ini yang merupakan definisi dari test case yaitu
memerlukan lebih sedikit sumber daya dan waktu untuk pelaksanaan pengujian
mencakup fungsionalitas end-to-end yang akan diuji
fokus pada apa yang akan diuji
serangkaian tindakan yang dijalankan untuk memverifikasi fitur atau fungsionalitas tertentu
proses pengujian dapat dilakukan lebih cepat
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-B-D-E-C
A-B-C-E-D
A-B-D-C-E
B-A-D-E-C
B-A-D-C-E
Functional testing terdiri dari
Unit testing, Integration testing, Performance testing
Unit testing, Integration testing, System testing
Unit testing, Integration testing, Usability testing
Unit testing, Integration testing, Compatibility testing
Unit testing, Integration testing, Scalability testing
Sedangkan, kemampuan software yang dikembangkan agar dapat diintegrasikan antara satu sistem dengan sistem lainnya. Hal ini disebut
correctness
reliability
usability
integrity
interopability
How do you create an array in PHP?
$cars = array("Volvo","BMW","Toyota");
$cars = "Volvo","BMW","Toyota";
$cars = array["Volvo","BMW","Toyota"];
How do you get information from a form that is submitted using the "get" method?
Request.QueryString;
Request.Form;
$_GET[];
