Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

1.1 Which of the following program segments will display odd numbers up until to 31?

a. i = 1;

while (i < 31)

{ cout << "i = " << i << endl; i = i + 2; }

b. for(int i= 0; i < 32 ; i++)

{ cout << "i = " << i << endl; }

c. for(int i= 0; i <= 31 ; i= i + 2 )

{ cout << "i = " << i << endl; }

d. for(int i= 1; i < 32 ; i= i + 2 )

{ cout << "i = " << i << endl; }


1.1 A variable declared within the for-loop has _________ scope.

a. local

b. global

c. block

d. private

1.2 Which of the following statements is equivalent to the following: while (value < 18)

a. while (value <= 18)

b. while (value >=18)

c. while (! (value > 18) )

d. while (value < 17)

1.3 Which of the following equations will deduct a discount of 7.5% from an amount?

a. amount = amount – 7.5%

b. amount = amount * .925;

c. amount = amount – (amount * 0.075)

d. amount = amount – amount * 0.75;

1.4 Which of the following statement is equivalent to?

result *= a + 5;

a. result = result * a + 5;

b. result = result * (a + 5);

c. result = (result * a ) + 5

d. results = a+ 5;



1.1 A loop must be terminated when the total value of less than a 0 (Zero) is entered.

a. do while total > 0

b. do while total = 0

c. do while total < 0

d. do while total >= 0

1.2 Study the following series: 3; 6; 10; 15; 21; . . .

The next element in the series is

a. 26

b. 28

c. 30

d. 32

1.3 In order for students to qualify for the next module they need to pass one of the two assessments. Which operator will be correct to test these conditions in a do while loop.

a. AND

b. OR

c. NOT

d. Any logical operators as they have the same order of precedence


1.1 Which of the following statements is true with regards to the post-test loop?

a. The statement in the body of the loop must be processed at least once.

b. It is not known how many times the body of the statement must be processed.

c. The condition controlling the loop can be tested at the end of body of the statements

d. All of the above

1.2 Which of the following is not true with regards to the pre-test loop?

a. It is possible that the statement inside the body of the pre-test will not execute at all.

b. It is always known how many times the statements inside the body will execute.

c. A sentinel may be used to control the execution of the loop.

d. Once a while loop is entered, the statements within the compound statement are executed as long as the tested condition is true.


In the situation where there are multiple users or a networked computer system, you probably share a printer with other users. When you request to print a file, your request is added to the print buffer. When your request reaches the front of the print buffer, your file is printed. This ensures that only one person at a time has access to the printer and that this access is given on a first-come, first-served basis. Write a C program to implement the above scenario.


WAP to create 3 Classes. Each class must have input function (to input one value from user) and display function. Make a common friend function of three class that find greatest number.


Write a C program that bitwise displays the short-integer value 167 on the screen.


Write a procedure and call it into main pl/sql program to find a factorial of a number.


Write a procedure to calculate factorial of a number entered by user.

Write a program in PL/SQL to show the uses of SQL%FOUND to determine if a DELETE statement affected any rows.


LATEST TUTORIALS
APPROVED BY CLIENTS