Assessment Task 2

Java Python Assessment Task 2

Instructions

Please refer to the subject outline for more details about this task.

•   The due date and time for this assessment task is on 29/09/2024, 11:59pm.

•   This assessment is an individual task.

•   Submissions will be made through Turnitin, UTS Canvas.

•   Tutors will mark student submissions in their respective tutorials.

•   Your tutor will distribute marks and feedback and address any marking questions.

•   All communications must use your UTS email account – other emails may be ignored.

Assessment task 2 - Part 1: Black Box  Testing (10 marks)

Given the function specification a below, can you design test cases by applying each of the following black box testing methods?

•    Input Partitioning (4 marks)

•   Output Partitioning (3 marks)

•    Boundary Value Robustness Testing (3 marks)

Given an array of no more than 100 unique integers sorted in ascending order, arr, and an integer x, the function returns an integer that meets the following conditions:

•   If there is no such a value of j that arr[j] equals x, then return -1.

•   Otherwise, return the value of j that arr[j] equals x.

The function throws an Exception for any invalid input, e.g., arr is null, or x is not an integer.

Assessment task 2 - Part 2: White Box Testing (20 marks)

Suppose we have already had implementations of the above function (Iterative Binary Search Algorithm) in different programming languages:https://www.geeksforgeeks.org/binary-search/. Solely based on the source  code, can you design test cases for any language version of the binarySearch() function by applying each of the following white box testing methods?

•   Statement Coverage (5 marks)

•    Decision Coverage (5 marks)

•    Loop Coverage (5 marks)

•    Path Coverage (5 marks)

You are required to complete both parts using a single template (Assignment 2 Template.docx)         

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值