What result would be generated by the formula =10*2-3*2?

A) -20 B) 14 C) -2 D) 34


B

Computer Science & Information Technology

You might also like to view...

What is output by the following Java code segment?

``` int temp = 180; if (temp > 90) { System.out.println("This porridge is too hot."); // cool down temp = temp – (temp > 150 ? 100 : 20); } else { if (temp < 70) { System.out.println("This porridge is too cold."); // warm up temp = temp + (temp < 50 ? 30 : 20); } } if (temp == 80) { System.out.println("This porridge is just right!"); } ``` a. This porridge is too hot. b. This porridge is too cold. This porridge is just right! c. This porridge is just right! d. None of the above.

Computer Science & Information Technology

Which of the following are events that a programmer would want to throw an exception to manage?

a) A power failure (presumably in the absence of a UPS -- an Uninterruptable Power Supply). b) A user enters a name too long for the C-string buffer, threatening a buffer overflow. c) A disk drive fails d) Operator new fails to find sufficient memory in the free store to satisfy a call. e) Someone inadvertently presses the reset button on the front of the machine.

Computer Science & Information Technology

What can be constructed by choosing two or more data items and combining them?

A) a primary key B) an attribute C) a secondary key D) an entity E) a concatenated key

Computer Science & Information Technology

Clip art are images included with Microsoft ________

Fill in the blank(s) with correct word

Computer Science & Information Technology