What is the output when the following code is executed?
score =65
group = ''
if score<= 60:
group = group + 'A'
if score <= 70:
group = group + 'B'
if score <= 80:
group = group + 'C'
else:
group = group +'D'
print(group)
Answer: option B
BC
SCREENSHOT OF THE OUTPUT:
Question 25 What is output when the following code is executed? 65 score = group if...
Consider the following statements. If the input is 95, the output of the following code will be: #include <iostream> #include <string> using namespace std; int main ) { float score; string grade; cin >> score; grade - "Unknown"; if (score >= 90) grade - "A"; if (score > 80) grade - "B"; if (score > 70) grade - "C"; else grade - "F"; cout << grade; }
Question 16 What is the value of x after the following code is executed? X = 7 If x < 7 X = x + 1 X = x + 2 7 9 10 8
Question 17 With the logic block shown below, what is output when grade is assigned with the value 75? If grade < 50 Put "F" to output Else If grade < 60 Put "D" to output Else If grade < 75 Put "C" to output Else If grade < 85 Put "B" to output Else If grade Put "A" to output <= 100 Else Put "Invalid grade" to output Invalid grade A 00
What will be printed for the code below: age = 15 if (age < 13) { print ("child") } else if (age >= 13 & age <=19) { print ("teenager") } else { print ("adult") } What will be the output of the code below: for(i in 1:100) { if(i <= 20){ print (i) }
What is the output of the following code: int numbers [] {99,87,66,55,101}; cout << numbers[i] « " ";
Q4) what is the output after the code below is executed? #include <stdio.h> #1 nclude<string.h> int main) char abc[100]-"Good Luck in Your Programming Final" int i, ; while(abc[i]!= '\0'){ if(abc[i]' if(abc[i+1]-'&&abci+1] -'0' else printf"c", abcli-1]) printf("\n w = %d return 0; \n", w); Place you answer here 4 l Page
What is printed when the following code is executed? #include <stdio.h> int main() { for (int i=3, j=5; i>=0; i-=2, j+=j*i) { printf("%d", j); منم }
Question 68 (Mandatory) (1 point) When the Java source code below is executed, how many times is the boolean expression (j > 0) evaluated? = int i 1; int p 0; while (i <= 2) for(int j = 28; (j > 0); j /= 2) { p+= 5; { } i i + 1; مه none of the other answers are correct 12 6 18
< Question 34 of 65 > Calculate the volume, in liters, occupied by 0.165 mol of oxygen gas at STP. L V=
51. What is the output of the following code snippet? int number = 0; int ptr_num -&number ptr_num 60; number-80 cout < "ptr num << endl b, 60 c. 80 d. the address of number Answer 52. What is the output of the following code snippet? double num-0.0; double* ptr = # num = 15.0; ptr ptr 15.0 cout << num <<"ptr <<endl; a. 15 15 b. 15 30 С. 30 15 d. 30 30 Answer: 53. What is the...