The ____ built-in function is used to convert a string literal to an integer.

A. toNum(string)
B. parseInt(string)
C. parseInteger(string)
D. parse(string)


Answer: B

Computer Science & Information Technology

You might also like to view...

Of the following statements, which one correctly initializes an int array named quarters with the values 1, 2, 3, and 4?

a. const int SIZE = 4; int[] quarters = new int[SIZE] { 1, 2, 3, 4 }; b. int[] quarters = new int[] { 1, 2, 3, 4 }; c. int[] quarters = { 1, 2, 3, 4 }; d. All of these statements are correct.

Computer Science & Information Technology

In an UPDATE statement, the SET keyword is followed by _________.

a. a comma-separated list of column value-name pairs in the format value = columnName b. a comma-separated list of column name-value pairs in the format columnName = value c. a semicolon-separated list of column value-name pairs in the format value = columnName d. a semicolon-separated list of column name-value pairs in the format columnName = value

Computer Science & Information Technology

Parsed character data includes _____.

A. comments B. empty element tags C. processing instructions D. all of the above

Computer Science & Information Technology

Experiment with the Hello CGI example presesnted in Figures 9.10 and Figure 9.11.

a. Obtain the source files for the Hello CGI example presesnted in Figures 9.10 and Figure 9.11. b. Install hello.html on the web server: be sure to open its access to world-readable. c. Compile hello.c (with util.c for the query-string processing routines) to generate an executable Hello.cgi. (The command is%gcc hello.c util.c -o hello.cgi). Install hello.cgi on the web server: be sure to open its access to world-readable and world-executable. d. Open a browser and specify the URL for hello.html. When the page is displayed, press the button to submit the form and invoke hello.cgi. e. Summarize the experiment and report the result.

Computer Science & Information Technology