Given the algebraic equation y = ax 3 + 7, which of the following, if any, are correct C++ statements for this equation?

a) y = a * x * x * x + 7;
b) y = a * x * x * ( x + 7 );
c) y = ( a * x ) * x * ( x + 7 );
d) y = (a * x) * x * x + 7;
e) y = a * ( x * x * x ) + 7;
f) y = a * x * ( x * x + 7 );


Parts (a), (d) and (e).

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true about tablet computers' size and features?

A) Most tablet computers are capable of connecting to wireless networks, and some are able to access data via cellular network connections. B) Some tablet computers have screens as small as 7" measured diagonally, while others have screens closer to 16". C) Since they are designed to be lightweight and have long battery lives, tablet computers are traditionally not as powerful as traditional PCs. D) Tablets are capable of Internet browsing, e-mail, light gaming, and some productivity work.

Computer Science & Information Technology

What are some advantages of synchronizing your data to a personal computer (or laptop)?

What will be an ideal response?

Computer Science & Information Technology

You have three hundred distinct items. How many bits would you need minimum to accommodate these three hundred distinct items?

A: 8 B: 9 C: 10 D: 11 E: 12

Computer Science & Information Technology

A VPN connection that is set to time out after 24 hours is demonstrating which model of access control?

A. Role-based access control B. Attribute-based access control C. Discretionary access control D. Mandatory access control

Computer Science & Information Technology