When two pointer variables point to the same memory location

Assignment Help Programming Languages
Reference no: EM13952899

1. The _______ of a variable is its ________.

a. address; l-value

b. value; r-value

c. address; r-value

d. value; l-value

e. a and b

f. c and d

2. When a variable's type is determined through default conventions, the type declaration is:

a. omitted.

b. implicit.

c. explicit.

d. required.

3. The goto statement is the basis for the:

a. break statement in a C switch structure.

b. exit statement in an FORTRAN 90 loop structure.

c. last statement in a Perl loop structure.

d. All of the above.

e. None of the above.

4. An advantage of dynamic scoping is that access to nonlocal variables is considerably faster than accesses to nonlocals when static scoping is used.

a. True

b. False

5. The idea of providing a few basic data types and methods for programmers to design data structures to meet their needs was introduced with:

a. FORTRAN

b. COBOL

c. PL/I

d. ALGOL 68

6. In JavaScript, an incorrect RHS data type:

a. can be detected and reported at runtime.

b. cannot be detected, resulting in aberrant execution.

c. results in the type of the LHS being changed to match.

d. none of the above.

7. A given variable's storage bindings are determined at runtime but its data type is bound prior to runtime. This type of variable is termed:

a. static.

b. dynamic.

c. heap-dynamic.

d. stack-dynamic.

8. ALGOL 60 introduced __________, which has been copied by most imperative languages and many non-imperative languages.

a. static scope

b. dynamic scope

c. stack-dynamic scope

d. heap-dynamic scope

9. _________ is based on the calling sequence of subprograms.

a. Dynamic scope

b. Static scope

c. Stack-dynamic scope

d. Heap-dynamic scope

10. A(n) __________ is the collection of attributes of a variable.

a. abstract data type

b. structure

c. record

d. descriptor

11. Associativity in common imperative languages is left to right.

a. True

b. False

12. Programmers can alter associativity and precedence rules by:

a. overloading operators.

b. defining constants.

c. managing heap allocation/deallocation.

d. using parenthesis.

13. The simplest of all data types is:

a. integer.

b. Boolean.

c. bit.

d. character.

14. When an array's subscript ranges are determined at compile time, but the allocation is done at runtime, the array is:

a. static.

b. fixed stack-dynamic.

c. stack-dynamic.

d. heap-dynamic.

15. If every element of a list must be processed, a(n) ___________ is more efficient than a(n) __________.

a. hash; array

b. array; hash

c. record; array

d. hash; record

16. A pointer that contains the address of a heap-dynamic variable that has been deallocated is called:

a. a dangling pointer.

b. garbage.

c. lost pointer.

d. inaccessible variable.

17. Selection statements fall into two general categories, two-way and n-way, or single-way selection.

a. True

b. False

18. When the result of an expression is determined without evaluating all of the operands or operators, the evaluation is said to be:

a. short-sight.

b. short-hand.

c. short-circuit.

d. none of the above.

19. When selection must be based on a Boolean expression, the best approach is a(n) ___________ control structure.

a. if..then

b. case

c. switch

d. b or c, depending on the language

20. An iterative statement is one that causes a statement or collection of statements to be executed one or more times.

a. True

b. False

21. When the number of iterations is dependent on the number of elements in a data structure, JavaScript programmers may use the _______ control structure.

a. do...until

b. for

c. foreach

d. while

22. Using the precedence rules of APL, the value of the expression 24 x 3 + 1 is 73.

a. True

b. False

23. When two pointer variables point to the same memory location, they are said to be:

a. identical.

b. commingled.

c. conflicted.

d. aliases.

24. The association of an entity and an attribute that is done before runtime and does not change during execution is a:

a. dynamic binding.

b. dynamic linking.

c. static binding.

d. static linking.

25. If a mathematical operation is associative, then the corresponding floating-point operation is associative.

a. True

b. False

Reference no: EM13952899

Questions Cloud

Determine the probability density function : Define the probability density and cumulative probability function for an absolutely continuous random variable. Which of these functions is analogous to the probability mass function of a discrete random variable?
Jesse to calculate profit for sales of backpacks : Create a spreadsheet model for Jesse to calculate profit for sales of the backpacks (one model.) Demand and production quantity for each of the three models are uncertain variables.
Describe why the fraud was committed and amount of loss : write a report on the article, including if described in the article items to report on: perpetrator info, why the fraud was committed (motive), amount of loss (damages).
Calculate the probability of the child having the disease : For each parent there is a 50-50 chance that the child will inher- it either the dominant or the recessive gene. Calculate the probability of the child having the disease if: Both parents are carriers and One parent is a carrier and the other..
When two pointer variables point to the same memory location : Using the precedence rules of APL, the value of the expression 24 x 3 + 1 is 73.
Write a succinct introduction that informs reader of topic : Introduction: Write a succinct introduction that informs the reader of the topic of the assignment and its organization. Remember, an effective essay introduction tells the reader what you will say
Determine the probability of no more than four successes : Give the conditions necessary for the binomial distribution to apply to a random variable. Give the general formula for the probability of r successes in n trials.
Are a and b mutually exclusive : Assume that the proportions in the table represent the "infinite population" of adult women. Let A = {woman used oral contraceptives} and let B = {woman had an MI episode}- Find P(A), P(B), P(Ac), and P(Bc) and What is P(A n B)?
Develop the tabular form and graphical bar chart : What is the most frequent group in your WI sample data? What does that indicates in term of your data distribution - What is the probability that the head of household is women and her HLE is Primary?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a windows form application project.

After these two selections are made the user will click the Selection Complete button that will compute the total price of rental

  Designing system to handle donations of non-profit agency

You have been hired by worldwide non-profit agency to create a system to handle their donations.

  Based on the keston 2013 article in the electronic reserve

write a 200- to 300-word short-answer response to the followingbased on the keston 2013 article in the electronic

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  List all the employees in the emp table

Change your answer from above to list those employees with the bottom 4 credit limits.

  Program to accept mass-density and compute volume

Write down the program which accepts as input the mass (in grames) and density (in grams per cubic centimeters), and output volume of the object.

  Write a bioperl-based script

Write a BioPerl-based script ("pick-by-id.pl") to extract sequences by id. It will emulate the "blastdbcmd -db -entry" command. Use "GBB.pep" and "BBA15" as the two arguments.

  Program to ask how many games are being purchased

Your program should ask the store clerk how many games are being purchased and calculate a total due (with 6% tax). The total number of games, the discount amount.

  Design pseudocode for application to enter order item

Design the pseudocode for an application that allows a user to enter an order item continuously until a sentinel value is entered.

  Write program to read series of pairs of numbers

Write the program which reads series of pairs of numbers (product code and quantity sold) then the program must compute and print the total retail value

  Find the sum and difference for numbers

Write a program that prompts the user for two numbers, finds the sum and difference for those numbers and displays a descriptive label for each computation by calling two different functions. Use Function Prototypes.

  Design a logic for a program which allows a user to enter

design a logic for a program that allows a user to enter 15 numbers then display each number and its difference from

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