Answer:
SPARC
.
Explanation:
When the user has understood they're required to install the linux distribution to set up a specific program works better on such a RISC architecture. SPARC must therefore find the device from which it would work that following distribution for the Linux. It is a RISC and ISA that was previously designed through both Fujitsu and Sun.
Answer: Only A and C
Explanation: Default constructor is a constructor that has parameters with the values that are default or has no arguments/parameter present. Default constructor is not declared in the class rather it gets generated by itself when not defined.
Class is defined with data members, functions, objects etc are considered as per the requirement given by the user .It is the user defined concept.
Statement (B) is incorrect because static method is used for accessing the static members of the particular class and manipulate the value of it.
Thus, only statement (A) and (C) are correct.
Answer:
The languages C++, Java, Python are Object Oriented Programming languages. What this means is that we create classes and then instantiate those classes. In C++ and Java, we use the new operator to instantiate the classes. So, if we want to display some data when we try to print the instance just like we print the variables of data types like int, double, string etc, we need to define what we need to display. It is because, class are just like data types like int, double etc. But as they are defined by the developer according to his/her needs, so the developer has to define what to print when they are printed.
Answer:
It is not valid
Explanation:
I'll assume the question relates to cell referencing in Microsoft Excel.
To reference a cell in Excel, we make use of the following steps:
- Write out the cell column name first
- Followed by the row number
7b implies that, the row number first, followed by the column name; this doesn't follow the naming convention of cells.
Hence, 7b is invalid.
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int[] array = new int[10];
int index = 0;
while(index < array.size()){
int number = (rand() % 100) + 1;
for (int i = 0; i < 1; i++) {
array[index] = number;
cout<< "Position "<< index << "of the array = "<< number << endl;
++index;
}
}
}
Explanation:
The while loop in the source code loops over a set of code ten times, The for loop only loops once to add the generated random number between 1 and 100 to the array of size 10. At the end of the for loop, the index location and the item of the array is printed out on the screen. The random number is generated from the 'rand()' function of the C++ standard library.