ckboard.com/webappslassessment/takellaunchisp?course assessment Tools Help idE-1
ID: 3849256 • Letter: C
Question
Explanation / Answer
since question 1 to 7 are answered ,
I answered from 8 to 15
8. Option D
Moore's Law:
Moore's law defines that the number of transistors per square inch on integrated circuits had doubled every year since their invention.
With the definition we can say that Option A,B,C are irrelavant, and Option D is more closely to the definition.
9. Option B:
Constructor Can Specify Parameter, but not return Type.
For Example:
public class MyClass {
private int number = 0;
public MyClass() {
}
public MyClass(int theNumber) {
this.number = theNumber;
}
}
The Java class above contains two constructors. The first constructor is a no-arg constructor, meaning it takes no parameters (no arguments). The second constructor takes an int parameter. Inside the constructor body the int parameter value is assigned to a field, meaning the value of the parameter is copied into the field. The field is thus initialized to the given parameter value.
And Constructor can never specify a return type.
10. Option A
Operating systems provide a software platform on top of which other programs, called application programs, can run.
Remaining all the three options are true, so Option A is false.
11. Option C:
For Example;
Scanner sc= new Scanner(System.in);
int a= sc.nextInt();
//Syntax for getting int value for keyboard.
nextInt is used in scanner method for inputting an integer value.
12. Option C:
Methods or variable declared as private can be accessed only within the same class.
13. Option A:
%f for float or double
Usual variable type Display
%c char single character
%d (%i) int signed integer
%e (%E) float or double exponential format
%f float or double signed decimal
%g (%G) float or double use %f or %e as required
%o int unsigned octal value
%p pointer address stored in pointer
%s array of char sequence of characters
%u int unsigned decimal
%x (%X) int unsigned hex value
14. Option D:
Keyword null indicates that a method will perform a task but will not return any information. Actually, keyword void indicates that a method will perform a task but will not return any information.
15. Option C:
Placing a semicolon at the end of the first line of an if statement doesn't throw any compilation error.
Please rate it if you get the answer. Thanks..)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.