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

1. There is only one kind of parameter passing in C++, namely call-by-value.
Explain.
2. The call-by-reference mechanism is specified in the function declaration and
definition, using a $ between the type and the parameter.
3. The position of the ampersand in the function header is of no importance to the
proper compiling and execution of code that uses call-by-reference parameters.
4. A call-by-value parameter may pass data only into a function.
5. A call-by-reference parameter may pass data only out of a function.


1. False.
2. False
3. True
4. True.
5. False.

Computer Science & Information Technology

You might also like to view...

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

1. A TLS session is an association between a client and a server. 2. Secure Sockets Layer (SSL) is an Internet standard that evolved from a commercial protocol known as Transport Layer Security (TLS). 3. Sessions are used to avoid the expensive negotiation of new security parameters for each connection that shares security parameters. ? 4. The Handshake Protocol is the simplest of the four TLS-specific protocols that use the TLS Record Protocol. 5. The World Wide Web is fundamentally a client/server application running over the Internet and TCP/IP intranets. ?

Computer Science & Information Technology

Under what circumstances would you archive files using tar?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is not one of the main problems that can occur in developing decision tables?

A) incompleteness B) impossible situations C) contradictions D) repetition

Computer Science & Information Technology

Write the same code using the designed loop structure. You are not writing complete programs!

Declare a string variable and ask the user to enter a line of text. This process should continue until the user enters the word “done”. Write a while loop and a do while loop that accomplishes this task.

Computer Science & Information Technology