Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS 159 Lab 5 with Questions and Answers, Exams of Computer Science

CS 159 Lab 5 with Questions and Answers In downward communication (passing by value) it is only a copy of the data that is sent from the calling function to the called function ANSWER True The C language uses only pass by value and "return" to achieve communication of data between a calling and a called function ANSWER False It is not possible to access a variable in the calling function by its identifier when inside the called function ANSWER True Given the address of a variable the called function can access and manipulate the value of a variable in the calling function ANSWER True The called function must declare a special type of variable known as a pointer to store a memory address that is sent from the calling function ANSWER True To obtain the address of a variable use the address operator (&) ANSWER True The asterisk (*) when used in a variable declaration indicates that the variables are not data variables but address (pointer) variables which can store the addresses of

Typology: Exams

2024/2025

Available from 01/02/2025

school-inspector
school-inspector 🇺🇸

2

(1)

4.5K documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4

Partial preview of the text

Download CS 159 Lab 5 with Questions and Answers and more Exams Computer Science in PDF only on Docsity!

In downward communication (passing by valuc) it is only a copy of the data that is sent from the calling function to the called function ANSWER True The C language uses only pass by value and "return" to achieve communication of data between a calling and a called function ANSWER False It is not possible to access a variable in the calling function by its identifier when inside the called function ANSWER True Given the address of a variable the called function can access and manipulate the value of a variable in the calling function ANSWER Truc The called function must declare a special type of variable known as a pointer to store a memory address that is sent from the calling function ANSWER Truc To obtain the address of a variable use the address operator (&) ANSWER True The asterisk (*) when used in a variable declaration indicates that the variables are not data variables but address (pointer) variables which can store the addresses of other variables in the program ANSWER True The asterisk has two different uses, declaring an address variable (pointer) and indirectly accessing the data (in memory location to which the variable points) ANSWER True