Answer:
The program in QBasic is as follows;
PRINT "Number: "
INPUT N
LET FACT = 1
FOR I = 1 TO N
FACT = FACT * I
NEXT I
PRINT FACT
END
Explanation:
This prompts user for number
PRINT "Number: "
This accepts input from the user
INPUT N
This initializes the factorial to 1
LET FACT = 1
This iterates through the number the user inputs and calculates its factorial
<em>FOR I = 1 TO N
</em>
<em> FACT = FACT * I
</em>
<em>NEXT I
</em>
This prints the factorial
PRINT FACT
The program ends here
END
Answer:
The correct answer to the following question will be Option D (Human Resources Department).
Explanation:
- The HR department of the company shall be responsible for managing human capital, monitoring different aspects of jobs, such as complying with employment law and labor standards, administering benefits of the employee, arranging personnel files with the documents required for future reference
- The Human Resources Division is concerned with some well-being of the EMT, career advancement and benefits of EMT.
The remaining three choices aren't in the right place because they haven't been too worried about the EMT and its rewards.
Therefore, Option D is the right answer.
Answer:
RDS with cross-region Read Replicas
Explanation:
The Amazon Web Service, popularly known as the AWS is a subsidiary company of the Amazon.com which provides various cloud computing platforms on demand and Application Programming Interface or the API to other companies, governments and individuals.
The Amazon web services provides an effective RDS. RDS stands for Relational Database Service. The Amazon RDS is used to set up as well as operate and scale relational database in cloud. It provides resizable capacity and cost effective database.
In the context, Amazon Wen Services can deliver RDS with cross regional Read Replicas.
Answer: II and III only
The first code will print starting with the second variable in the array. So it will start with array[1] instead of starting with array[0]
The second code will start from array[0] as the variable i is 0. It will print the first value in the array before proceeding to increment the value of i.
The third code will also start from array{0] as the program will check for the first value of a before proceeding to the next one.
An example would be if we were to define the array as:
int[] a = {1,2,3,4,5};
1st Code Output:
2
3
4
5
2nd Code Output:
1
2
3
4
5
3rd code Output:
1
2
3
4
5
Always remember that arrays will always begin from 0.