In a situation where you want to perform one action when a Boolean expression evaluates as true and an alternate action when it evaluates as false, otherwise known as a dual-alternative decision, what sort of statement should you use?

A. if-else
B. if
C. switch
D. fork


Answer: A

Computer Science & Information Technology

You might also like to view...

completes which of the following tasks?

The line of code ``` sw.Close() ``` sw.Close() ``` sw = IO.File.CreateText(fileName) ``` (A) it closes the current application (B) it closes the current form (C) it closes the currently opened window of the application (D) it closes the file referred to by the variable name sw

Computer Science & Information Technology

A ____ contains information about the current condition of the application.

A. scroll bar B. title bar C. status bar D. menu bar

Computer Science & Information Technology

If a class has only a default constructor, you must call the constructor using the keyword ____ for each declared array element.

A. default B. new C. first D. object

Computer Science & Information Technology

A social networking site allows members to share information and ideas with fellow online community members.?

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

Computer Science & Information Technology