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

1. Functions can be called several times from different points in a program because for each call the program keeps track of the statement to which control returns after the call finishes its last step.

2. If f1 and f2 are the names of functions defined in a C program, then the statement sequence
f1;
f2;
f1;
is legal in function main.

3. The preprocessor directive
#include
should be present in a program that calls the fabs library function.


1. True
2. False
3. True

Computer Science & Information Technology

You might also like to view...

Analyze the following code.

``` import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; public class Test extends Application { @Override // Override the start method in the Application class public void start(Stage primaryStage) { // Create a button and place it in the scene Button btOK = new Button("OK"); btOK.setOnAction(e -> System.out.println("OK 1")); btOK.setOnAction(e -> System.out.println("OK 2")); Scene scene = new Scene(btOK, 200, 250); primaryStage.setTitle("MyJavaFX"); // Set the stage title primaryStage.setScene(scene); // Place the scene in the stage primaryStage.show(); // Display the stage } /** * The main method is only needed for the IDE with limited JavaFX * support. Not needed for running from the command line. */ public static void main(String[] args) { launch(args); } }``` a. When clicking the button, the program displays OK1 OK2. b. When clicking the button, the program displays OK1. c. When clicking the button, the program displays OK2. d. The program has a compile error, because the setOnAction method is invoked twice.

Computer Science & Information Technology

You should use the font in your Windows applications.

a) Tahoma b) MS Sans Serif c) Times d) Palatino

Computer Science & Information Technology

Just like for printing any worksheet data, preview the chart in Backstage view before you print to check margins, spacing, and page breaks to ensure a balanced printout

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ is an index within a chart that provides information about the data

A) y-axis labels B) title C) legend D) x-axis labels

Computer Science & Information Technology