Question

What is the output of the following pseudo-code segment? A, B, C, or None of the...

What is the output of the following pseudo-code segment? A, B, C, or None of the above


** In pseudo-code, you ignore syntax errors and focus on the logic **
score = 60
if (score >= 70) print "C"
else if (score >= 80) print "B"
else if (score >= 90) print "A"

and

score = 105
if (score >= 90 && score <= 100) print "A"
else if (score >= 80) print "B"
else print "C"
0 0
Add a comment Improve this question Transcribed image text
Answer #1
1)
None of the above

2)
B

Add a comment
Know the answer?
Add Answer to:
What is the output of the following pseudo-code segment? A, B, C, or None of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q1: Which of the following is a double-selection control statement? do…while for if…else if. Q2: Which...

    Q1: Which of the following is a double-selection control statement? do…while for if…else if. Q2: Which of the following is not a Java keyword? do next while for Q3: What is output by the following Java code segment? int temp; temp = 200; if ( temp > 90 )    System.out.println( "This porridge is too hot." ); if ( temp < 70 )    System.out.println( "This porridge is too cold." ); if ( temp == 80 )    System.out.println( "This...

  • What is the cyclomatic complexity of the following pseudo code program segment? Use line numbers in...

    What is the cyclomatic complexity of the following pseudo code program segment? Use line numbers in the left column to indicate independent paths. Hint: Draw a flowchart and draw execution lines through the flowchart. 1) Read (A, B) 2) If (A>B) 3)       Print A 4) Else 5)       Print B 6) While (A>B) 7)       A = A-1 8) End

  • Question 25 What is output when the following code is executed? 65 score = group if...

    Question 25 What is output when the following code is executed? 65 score = 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) BC AB с D

  • Question 17 (3 points) Predict the output of the following code segment: a = 99.98 if...

    Question 17 (3 points) Predict the output of the following code segment: a = 99.98 if a + 0.01 >= 100: print('A') elif a + 0.02 >= 100: print('B') print('c') else: print('D') print('E') Question 16 (3 points) Predict the output of the following code segment: X = 6 if x % 2 == 0: print ("x is even.") else: print ("x is odd.") Please use the decimal point to distinguish int and float. For example, number 3 + number 4...

  • Given the following pseudo-code, please show what the outputs will be at LINE A, B, C...

    Given the following pseudo-code, please show what the outputs will be at LINE A, B, C and D. please put down “inconclusive” if you think the CPU process scheduling could potentially result in multiple values for integer i. You will receive partial credit if you draw the process tree. int i = 0; int main(){                         if (fork() == 0) {                         i++;                         if (fork() == 0){                                     if (fork() == 0){                                                 i++;                                                 print value...

  • I need this in Net beans and not Python. Part 1 - Pseudo-code Design and write...

    I need this in Net beans and not Python. Part 1 - Pseudo-code Design and write the pseudo-code for the following Problem Statement. Problem Statement A company gives its employees an that will provide one of 3 results based on the following ranges of scores: Score Message on Report 90-100 Special Commendation 70-89 Pass Below 70 Fail Design a single If-Then-Else structure using pseudo-code which displays one of these messages based a score input by a user. Be sure your...

  • What is the output of the program segment? Assume there are no syntax errors and the...

    What is the output of the program segment? Assume there are no syntax errors and the code will compile. int i = 1; int n = 0; do { cout << i; i++; } while (i <= n); b) What are the values of i and n after execution? Assume there are no syntax errors and the code will compile. int i = 1; int n = 0; do { cout << i; i++; } while (i <= n);

  • Consider the following statements. If the input is 95, the output of the following code will...

    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; }

  • 5) What is the value of the variable answer after the code segment below completes? int...

    5) What is the value of the variable answer after the code segment below completes? int a, b, c; answer, a 3*b: b 5 10: c (a a b*b) / (c*c) answer = A).5 B) 2 C) 2.5 D) 250 ENone of the Above 8) What is the output of the following segment of code? int a 7, b= 3, c = 6 if (a> b c) printf"A"); if (b > a - с) printf ("B"); else printf("C") if (atb...

  • c++ In the following segment of the code, what will be the output if opening of...

    c++ In the following segment of the code, what will be the output if opening of the file is not successful? ifstream infile; try{ infile.open("test.txt"); if(!infile) throw -1; else cout << "successful" << endl; } catch(const char* msg) { cout << msg << " unsuccessful" << endl; } catch(int i) { cout << i < was returned, unsuccessful" <<endl; #8 WA w

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT