Get premium membership and access questions with answers, video lessons as well as revision papers.
Unfortunately, you get zero, as (1/2) is calculated first, resulting in 0.multiply by 0.5 instead.
Githiari answered the question on January 26, 2018 at 12:27
- In the following, what are the values of the variables after each statement when coding a java program?
Int a, b, c, d;
d = -8;
a =...(Solved)
In the following, what are the values of the variables after each statement when coding a java program?
Int a, b, c, d;
d = -8;
a = 1 * 2 + 3;
b = 1 + 2 * 3;
c = (1 + 2) * 3;
c = a + b;
d = -d;
Date posted: January 26, 2018. Answers (1)
- Explain the problem with this fragment of code:
Int a, b;
a = b;
b = 1;
(Solved)
Explain the problem with this fragment of code:
Int a, b;
a = b;
b = 1;
Date posted: January 26, 2018. Answers (1)
- Which of the following variables are allowed in Java, and which have the correct style?Volume, Area, Length, 3 sides, Sidel, length, Mysalary, Your salary, Screensize(Solved)
Which of the following variables are allowed in Java, and which have the correct style?
Volume
Area
Length
3sides
Sidel
length
Mysalary
Your salary
Screensize
Date posted: January 26, 2018. Answers (1)
- Write a program which draws a large ‘T’ shape on the screen.(Solved)
Write a program which draws a large ‘T’ shape on the screen.
Date posted: January 26, 2018. Answers (1)
- Create a program in java and name it DrawCircle.When the single button is clicked, it should draw a circle of pixel diameter.(Solved)
Create a program in java and name it DrawCircle.When the single button is clicked, it should draw a circle of pixel diameter.
Date posted: January 26, 2018. Answers (1)
- Define the term compiler as used in programming(Solved)
Define the term compiler as used in programming
Date posted: January 26, 2018. Answers (1)
- Write a program in java language to illustrate reverse sort of an array.The program should sort them in natural, alphabetical order using the default version...(Solved)
Write a program in java language to illustrate reverse sort of an array.The program should sort them in natural, alphabetical order using the default version of sort();
Date posted: January 26, 2018. Answers (1)
- State TWO main ways through which data is accessed in a storage media and give an example of a storage media in each case.(Solved)
State TWO main ways through which data is accessed in a storage media and give an example of a storage media in each case.
Date posted: January 26, 2018. Answers (1)
- What is a repeater?(Solved)
What is a repeater?
Date posted: January 26, 2018. Answers (1)
- Define the following terms (a)attenuation (b)bandwidth (c)multiplexing(Solved)
Define the following terms (a)attenuation (b)bandwidth (c)multiplexing
Date posted: January 26, 2018. Answers (1)
- Which device is used to rectify attenuation in a transmission medium?(Solved)
Which device is used to rectify attenuation in a transmission medium?
Date posted: January 26, 2018. Answers (1)
- State and briefly explain modes of data communication(Solved)
The student should have understood computer networking and the modes of communications used.
Date posted: January 26, 2018. Answers (1)
- State and explain the types of computer networks(Solved)
State and explain the types of computer networks.
Date posted: January 26, 2018. Answers (1)
- State FOUR purposes of computer networks(Solved)
State FOUR purposes of computer networks.
Date posted: January 26, 2018. Answers (1)
- State THREE advantages of computer networks(Solved)
State THREE advantages of computer networks.
Date posted: January 26, 2018. Answers (1)
- State TWO advantages of distributed processing(Solved)
State TWO advantages of distributed processing.
Date posted: January 26, 2018. Answers (1)
- Define data signal as used in computer networking(Solved)
Define data signal as used in computer networking.
Date posted: January 26, 2018. Answers (1)
- Define a transmission media(Solved)
Define a transmission media.
Date posted: January 26, 2018. Answers (1)
- State THREE causes of computerised system failure. (Solved)
State THREE causes of computerised system failure.
Date posted: January 26, 2018. Answers (1)
- State the THREE core principles of data security(Solved)
State the THREE core principles of data security.
Date posted: January 26, 2018. Answers (1)