What is the output of the following code:


int a = 6, b = 4;
if (a + b < 10)
a = 5;
else
a = a + 1;
a = a + 2;
cout << a;

a) 9
b) 6
c) 7
d) 5


a) 9

Computer Science & Information Technology

You might also like to view...

On a line chart, the x-axis is also known as the:

A) base axis. B) value axis. C) legend axis. D) category axis.

Computer Science & Information Technology

To apply default alignment, width, and CSS styles to groups of columns within a table, you would use ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Code for animation and other tasks that has been premade and is available for use in Flash is called which of the following?

A. Frame Rates B. Cel Animations C. Library Code D. Code Snippets

Computer Science & Information Technology

Two users need to securely share encrypted files via email. Company policy prohibits users from sharing credentials or exchanging encryption keys. Which of the following can be implemented to enable users to share encrypted data while abiding by company policies?

A. Key escrow B. Digital signatures C. PKI D. Hashing

Computer Science & Information Technology