What would be used to separate list values

Assignment Help Programming Languages
Reference no: EM13190963

1. Which of the following is not true with regards to thefollowing statement?

NAME=John+Doe&Serial=123456&System=M

A. Data was collected via an online form from aMacintosh computer.

B. Data was sent to the server when the user pressedthe Submit button.

C. Data was processed by a CGI script.

D. Data was sent to the server using the GET method.

2. A/An _______ is a unique number that distinguishes one scalarvariable from another in an array.

A. array variable C. key

B. primary key D. index

3. In the following expression, what would be used to separate list values?myarrayname = (list)

A. ; C. :

B. , D. |

4. Which of the following marks the beginning of a hash name?

A. @ C. $

B. % D. #

5. Which of the following is not true of scalar variables?

A. In an array, scalar variables are stored in order in the computer's memory.

B. In a hash, scalar variables are stored in order in the computer's memory.

C. A scalar variable contained in a hash starts with a $.

D. Scalar variables are assigned keys when the hash is created in thecomputer's memory.

6. Which of the following statements is not an example of a repetition structure that instructsthe computer to repeat a block of instructions?

A. foreach C. Nested foreach

B. for D. while

7. Which of the following is used by the for statement to keep track of the number of times

the loop instructions have been processed?

A. Repetition variable C. Counter condition

B. Loop variable D. Counter variables

8. Which of the following is used to allow a script to read data stored in a file?

A. < C. >>

B. > D. > and >>

9. Which of the following places an invisible newline character at the end of a record?

A. |n C. \n

B. \t D. n;

10. Which of the following is the angle operator in Perl?

A. {} C. ^^

B. <> D. !?

11. Which of the following syntax statements would write a record to an open file?

A. print filehandle\n;

B. print filehandle data filename\n;

C. print filename data\n;

D. print filehandle data\n;

12. Which of the following occurs if you're writing to a file named "project" and a file named

"project" already exists on your computer?

A. An error message will appear.

B. The file will be erased before the new data is written to the file named "project."

C. Two files named "project" will be saved to your computer.

D. The computer will prompt you for an alternate name for the data to be saved under

because a file named "project" already exists.

13. What will the following statement do?

open(DATA, ">>", "employees.txt");

A. Open the employees.txt file for output and assign the filehandle DATA to the file

B. Open the employees.txt file for input and assign the filehandle DATA to the file

C. Open the employees.txt file for append and assign the filehandle DATA to the file

D. Open the employees.txt file for append and rename the filename to DATA

14. Which of the following would not be an appropriate field separator for the name field

formatted "Doe, John"?

A. : C. ,

B. \t D. &

15. Which of the following is an appropriate example of the close function?

A. close(studentdata) C. close{studentdata}

B. close<studentdata> D. close[studentdata]

16. The values of a list are sorted

A. permanently.

B. in ascending alphabetical order.

C. in descending alphabetical order.

D. temporarily, according to the designated order.

17. Within which of the following is an array's index placed?

A. {} C. ()

B. [] D. <>

18. Which of the following is used to display a message when an error occurs?

A. exit C. abort

B. quit D. die

19. If numeric and string values are assigned to radio buttons in an HTML form, which of the

following is true?

A. The script contains an array.

B. The script contains a hash.

C. The script contains both an array and a hash.

D. The script contains a dynamic Web page.

20. Which of the following is correct?

A. print filehandle data\n; C. print filename data\n;

B. print filehandle, data\n; D. print filename, data;

Reference no: EM13190963

Questions Cloud

How many miles per hour was the car traveling : At the scene of an accident, police measured a skid mark of 361 feet. About how many miles per hour was the car traveling when the brakes were applied?
Find the slope of the tangent line to the curve : Find the slope of the tangent line to the curve
To improve cost function for better understand : If Alisha Maintenance manufacturing then how would Alisha's management improve its cost function to better understand their past maintenance costs and predict future maintenance costs.
Which changes in inflation expectations and required yields : Suppose that as the economic recovery strengthened consumer expectations of annual inflation increased from 2% to 3.5 % and, at the same time, the expected real rate of return required to equate investor demand to the existing supply of 1 year.
What would be used to separate list values : Which of the following is not true with regards to the following statement - unique number that distinguishes one scalarvariable from another in an array.
What was her real rate of return on this investment : Suppose Jean Splicer, an investor, buys $100,000 of shares of stock in a diversified bundle of Bio-tech firms and exactly one year later sells those shares for $108,000. If the value of the CPI at the date of Jean's purchase was 160, and rose by t..
State what was the concentration of unknown acid : if it took 18.72 (+ and - 0.05) ml of the base to reach the equivalence point. what was the concentration of unknown acid? 2) what is the uncertainity associated with this determination?
What state of business cycles : How do you relate the most recent unemployment rate (Look for Jan, 2012 data on unemployment rate) to your conclusion of this question indicating if the US economy is in a state of full employment. Feb 2012 unemployment data will be announced on M..
Example of a software quality problem : From your experience give an example of a software quality problem that was identified after the software was released. Why was this problem not identified earlier?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program-compute average using floating-point numbers

Write a program that will accept as input between 2 and 25 numbers and then calculate the average of the numbers. Make sure you use floating-point numbers in case the average is not a whole number.

  Write modular program to enter integers for sorting

Write a modular program that performs the following functions: Allows the user to enter 10 integers for sorting, Allows the user to select one of the two types of sorting techniques.

  Write the program by declaring one-dimensional array

Write the program by declaring one-dimensional array which could be used to hold data for grades (int type) of 10 students. The program will prompt user for numeric grades.

  Write pseudocode to show positive and negative numbers

Write down pseudocode which will accept 25 integers and show the number of positive and negative numbers. Mention whether pseudocode utilizes a finite or indefinite loop.

  Writing a class

Build a class for a type called Fraction

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Write methods for calculating maximum value of array

Write down the methods for calculating maximum value, minimum value, and mean value of array. Use these methods to calculate and display minimum of array.

  Find largest number in array

Find the largest number in the array and output the result. use a subprogram to input the numbers, a function to use the largest number.

  List various bindings to determine the semantics

List the various bindings that are required to determine the semantics when the statement is executed. For each binding, indicate the binding time used for the language.

  Write program to perform arithmetic operations on fractions

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

  Initialize elements of array with even integers

declare an array called values of type unsigned int with 5 elements. Initialize the elements of the array with the even integers from 2 to 10.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd