Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91623730
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Programming Language

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As