java代写-FIT5046
时间:2021-06-02
Page 1 of 6 Sample Questions Faculty of Information Technology FIT5046 - Mobile and Distributed Computing Systems ASSESSMENT MARKS Total marks for the Exam is 100. This exam accounts for 50% of the total assessment in FIT5046. ORGANISATION This exam is divided into THREE parts: PART QUESTIONS MARKS PART A 10 Multiple Choice Questions 10 x 2 = 20 marks PART B 6 Code-based Questions 6 x 8 = 48 marks PART C 4 Case-based Questions 4 x 8 = 32 marks Page 2 of 6 PART A – 10 Multiple Choice Questions (10 x 2 marks = 20 marks) Question 1. Which of the following statements is NOT true about a multi-hop sensor network? A. It makes it easy to control and manage the network. B. It involves transmission over short distances. C. It involves one or more intermediate nodes along the path that receive and forward packets. D. It can quickly drain the battery of the nodes close to the sink. Question 2. Which of the following statements is NOT true about a ViewGroup? A. A ViewGroup is a special view that can contain other views. B. A ViewGroup is the base class for widgets, which are used to create interactive UI components. C. A ViewGroup is the base class for layouts and views containers. D. The ViewGroup is a subclass of View. Question 3. Which of the following statements is NOT true about mobile crowdsensing? A. Participatory sensing requires active involvement of individuals to contribute sensor data. B. Participatory sensing usually provides some incentive to the users to perform the sensing action. C. In opportunistic crowdsensing, users decide when and how they should participate in a sensing task. D. In opportunistic crowdsensing, sensing tasks are performed in the background. Question 4. Which of the following Kotlin code examples is CORRECT? A. var num:Int B. var Int:num = 1 C. var num:Int = null D. var num = 1 There will be 10 questions in this section A in the exam. Here, only 4 sample questions are provided. This is just a guide. Page 3 of 6 PART B – 6 Short Answer Questions (6 x 8 marks = 48 marks) Question A1. Consider the following code example of a SOAP code. a) What is the purpose of the header in a SOAP message? Explain using the above-mentioned example. b) Which two parts of a SOAP message are optional? (6 + 2 = 8 marks) Page 4 of 6 Question 2. Consider the following example of the onActivityResult() method in an Android application that has two activity classes. a) In which activity would you use this method? b) What are two methods that must be completed before this method is called? What is the purpose of each method? (2+ 6 = 8 marks) @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == 1) { if(resultCode == RESULT_OK){ String message=data.getStringExtra("message"); binding.textView.setText(message); } } } Page 5 of 6 Question 3. Consider an example of a Retrofit Interface below. public interface RetrofitInterface { @GET("customsearch/v1") Call






















































































soap:mustUnderstand="1">234



Apples

< soap:Fault>
soap:Client

Failed to locate method


























































































customSearch(
@Query("key") String API_KEY,
@Query("cx") String SEARCH_ID_cx,
@Query ("q") String keyword);
}

a) What is the purpose of a Retrofit Interface? Explain by using the above-mentioned example.
b) What is the purpose of a model class in Retrofit? Explain by using the above-mentioned example.

(4+4= 8 marks)






There will be 6 questions in this section B in the exam.
Here, only 3 sample questions are provided.
This is just a guide.























Page 6 of 6
Part C – 4 Case-based Questions (4 x 8 marks = 32 marks)

Consider a context-aware smart kitchen of elderly people that is used to detect emergency situations and prevent
any health related risks. For example, if there is a ‘flooding’ situation, it turns off electricity and triggers an
emergency call.

a) Name two types of context that must be collected for this system.
b) Based on aggregation of the above-mentioned two contextual information, name two ‘situations’ that
can be inferred. These situations cannot include ‘flooding’ mentioned above.
c) Name two advantages of a context-awareness.
(2 + 2 + 4 = 8 marks)




There will be 4 questions in this section C in the exam.
Here, only 1 sample question is provided.
This is just a guide.


学霸联盟


essay、essay代写