How many times will this for loop execute? (Note: i is an int.) for(i = 0; i < 10; i = i+2)

A. 5
B. 10
C. The loop is not written correctly. It would not compile.
D. It is an infinite loop.


A. 5

Computer Science & Information Technology

You might also like to view...

New in Windows 10 is a virtual printer for PDF documents named Microsoft XPS Document Writer.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Where does a comment appear if a placeholder or text has not been selected?

A) In the Notes pane B) In the bottom right corner of the slide C) In the upper left corner of the slide D) In the center of the slide

Computer Science & Information Technology

The power of recursion in computer programming is the way in which computer scientists use recursive algorithms to analyze and solve complex problems.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You have a computer running a 32-bit CPU on which you want to install Windows Server 2008. Which of the following statements is true about your installation options?

A. you cannot install Windows Server 2008 R2 B. Windows Server 2008 for Itanium-Based Systems is a good option C. if you already have Windows Server 2003 Standard Edition with SP1, you can install Windows Server 2008 Datacenter Edition D. you need a minimum of 1 GB RAM

Computer Science & Information Technology