INSTRUCTIONS: 1. THERE ARE SIX (6) QUESTIONS IN THIS PAPER. 2. ANSWER FIVE (5) QUESTIONS ONLY. Question 1 Arrays are used when storing a large number of values. You are required to create an array named a and answer the following questions regarding array manipulation. a. Write a method fillRandom(int[] a, int min, int max), fill the array a with a random integer value. (Note: Math.random() returns a double in the range of 0.0 and 1.0, therefore it is cast to an integer number, between the minimum and maximum value). [6 marks] b. Write the Bubble sort method to sort array a into descending order. [10 marks] c. In the quicksort, an algorithm an element is chosen from the unsorted list. This element is called the…
4.) Write assignment statements that perform the following operations with the variables a, b, and c:…
The marketer wants to understand how the stimuli are changed into responses inside the consumer's ________, which has two parts: the buyer's characteristics that influence how he or she perceives and reacts to the stimuli and the buyer's decision process itself.Answer…
i. The first element is the access mode. It can be public, private, protected, or not appear at all.…
Problem 2. a) Write an application containing three parallel arrays that hold 10 elements each. The first array holds four-digit student ID numbers, the second holds first names, and the…
An array is a variable that holds multiple values of the same kind. Nearly every…
a. In linear algebra, determinants have many uses. Like with inverses, finding the determinants can prove difficult. However, on a 2x2 matrix, determinants are easy. b. Determinants are usually abbreviated "det". So:…
1. Identify each of the following statements as either true or false. If false, explain why.…
5) A variable is a value that is usually a coefficient of a parameter in an equation.…
13. Dimension numbers should be centered between arrowheads, except when using stacked dimensions where the numbers should be staggered.…
7. Space: can be thought of as the distance or area between, around, above, below, or within things.…
there? How does one refer to the initial array element? To the final array element?…
c) Assume that the list of holes in a variable partitions memory system contains the following entries (in the given order): 400K, 150K, 270K and 500K. Consider the following sequence of requests :…
* [ ]: Is used to specify the rank of the array. Rank is used to specify the size of the array.…
Course Name: Fundamentals of Programming Course Code: MCA111 Objectives: The aim of this course is to introduce the rudiments of programming to the students. Students will become familiar with problem solving techniques and algorithm development using computers. This will include structured programming using C, a high-level programming language. Prerequisites: None Contents: 1.Introduction to programming& Basics of C: Concepts of Algorithm and Flowcharts, Process of compilation, Generation of languages, Basic features of C Language like Identifier, Keywords, Variable, data types, Operators and Expression.…