Get premium membership and access questions with answers, video lessons as well as revision papers.
When you are obtaining the address of an overloaded function, it is the type specification of the pointer that determines which function is used.
Githiari answered the question on February 5, 2018 at 07:39
- Using 4 bit numbers, for example (5)10 = ( 0101)2 Write all positive numbers and all negative numbers that can be represented....(Solved)
Using 4 bit numbers, for example (5)10 = ( 0101)2 Write all positive numbers and all negative numbers that can be represented with four bits in sign-magnitude, one’s complement, and two’s complement.
Date posted: February 4, 2018. Answers (1)
- What is the bool data type in programming?(Solved)
What is the bool data type in programming?
Date posted: February 3, 2018. Answers (1)
- How can comments be included in a C++ program?(Solved)
How can comments be included in a C++ program?
Date posted: February 3, 2018. Answers (1)
- Give brief descriptions of polymorphism,encapsulation, and inheritance as applied in programming.(Solved)
Give a brief descriptions of polymorphism, encapsulation, and inheritance as applied in programming.
Date posted: February 3, 2018. Answers (1)
- Describe importance of computers in education systems.(Solved)
Describe importance of computers in education systems.
Date posted: February 2, 2018. Answers (1)
- Outline three advantages of using a mouse as an input device.(Solved)
Outline three advantages of using a mouse as an input device.
Date posted: February 2, 2018. Answers (1)
- State THREE examples of utility softwares(Solved)
State THREE examples of utility softwares.
Date posted: January 28, 2018. Answers (1)
- State what technology was used to process data during the following stages of computer generations. (a)1st Generation (b)2nd Generation (c)3rd Generation (Solved)
State what technology was used to process data during the following stages of computer generations. (a)1st Generation (b)2nd Generation (c)3rd Generation
Date posted: January 28, 2018. Answers (1)
- The following is a java call of a method :
justDoIt(‘’oranges’’);
and the method itself:
private void justDoIt (String fruit) {
JOptionPane.showMessageDialog(null, fruit);
}
Explain what happens when the method is...(Solved)
The following is a java call of a method :
justDoIt(‘’oranges’’);
and the method itself:
private void justDoIt (String fruit) {
JOptionPane.showMessageDialog(null, fruit);
}
Explain what happens when the method is called
Date posted: January 26, 2018. Answers (1)
- Explain the problem in the following java calls :
drawLogo (paper , 50, ‘’10’’);
drawLogo (50, 10, paper);
drawLogo (paper, 10);
(Solved)
Explain the problem in the following java calls :
drawLogo (paper , 50, ‘’10’’);
drawLogo (50, 10, paper);
drawLogo (paper, 10);
Date posted: January 26, 2018. Answers (1)
- We could rewrite the drawLogo method so that it has a single parameter: the drawing area.The rewritten method could use input dialogs to obtain...(Solved)
We could rewrite the drawLogo method so that it has a single parameter: the drawing area.The rewritten method could use input dialogs to obtain the drawing position from the user.What is the drawback of this approach considering a program in java programming language?
Date posted: January 26, 2018. Answers (1)
- Whereabouts will the logos be drawn in the following java codes
Int a = 10;
Int b = 20;
drawLogo (paper , a, b);
drawLogo(paper, b + a, b...(Solved)
Whereabouts will the logos be drawn in the following java codes
Int a = 10;
Int b = 20;
drawLogo (paper , a, b);
drawLogo(paper, b + a, b – a);
drawLogo (paper, b + a -3, b +a -4);
Date posted: January 26, 2018. Answers (1)
- There are 2.54 cm in an inch.Declare a constant in java programming language named cmPerInch, with the correct value.Show how it might be used in...(Solved)
There are 2.54 cm in an inch.Declare a constant in java programming language named cmPerInch, with the correct value.Show how it might be used in a calculation to convert inches to cm.
Date posted: January 26, 2018. Answers (1)
- What are the values of a, b, c, I, j, k after the following java code is executed
inti, j, k;
double a, b, c;
int n =...(Solved)
What are the values of a, b, c, I, j, k after the following java code is executed
inti, j, k;
double a, b, c;
int n = 3;
double y = 2.7;
i = (int)y;
j = (int) (y + 0.6);
k = (int) ( (double)n + 0.2);
a = n;
b = (int)n;
c = (int)y;
Date posted: January 26, 2018. Answers (1)
- What are the final values of m, n and s in the following java program?
Int m, n;
String s;
String v =’’3’’;
m =Integer.parseInt(v + v + ‘’4’’);
n...(Solved)
What are the final values of m, n and s in the following java program?
Int m, n;
String s;
String v =’’3’’;
m =Integer.parseInt(v + v + ‘’4’’);
n = Integer.parseInt(v + v) + 4;
s = Integer.toString(Integer.parseInt (v)
+ Integer.parseInt (v)) + ‘’4’’;
Date posted: January 26, 2018. Answers (1)
- Message dialogs can display a string.What do the following message dialogs display?
JOptionPane.showMessageDialog(null,
‘’5’’ +...(Solved)
Message dialogs can display a string.What do the following message dialogs display?
JOptionPane.showMessageDialog(null,
‘’5’’ + ‘’5’’ + 5 + 5);
JOptionPane.showMessageDialog(null,
‘’5’’ + ‘’5’’ + (5+5));
Date posted: January 26, 2018. Answers (1)
- Complete the following java program, adding assignments to split totalseconds into two variables : minutes and seconds
Int totalSeconds = 307;
(Solved)
Complete the following java program, adding assignments to split totalseconds into two variables : minutes and seconds
Int totalSeconds = 307;
Date posted: January 26, 2018. Answers (1)
- State the values that end up in a, b, c, and d, after these calculations are performed using java programming language.
Int a, b, c, d;
a...(Solved)
State the values that end up in a, b, c, and d, after these calculations are performed using java programming language.
Int a, b, c, d;
a = 7/ 3;
b = a* 4;
c = ( a + 1) /2;
d = c / 3;
Date posted: January 26, 2018. Answers (1)
- My salary is sh.20,000, and I agree to give you half using the following calculation in java:
Int half = 20,000 * (1/2);
How much do you...(Solved)
My salary is sh.20,000, and I agree to give you half using the following calculation in java:
Int half = 20,000 * (1/2);
How much do you get?
Date posted: January 26, 2018. Answers (1)
- 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)