Determined through default conventions

Assignment Help Computer Engineering
Reference no: EM1325826

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: EM1325826

Questions Cloud

Social psychology help : This solution offers ideas regarding the importance of early psychosexual development.
What is the importance of chemistry to agriculture : What is the importance of chemistry to agriculture, Write summary of total one page and include references as well.
Stages of moral reasoning : Two four-year-olds are playing in a sandbox. The little boy says to the little girl, "I'll give you a pear if you take off your panties."
Response in apa format that provides an economic profile : Write down a response in APA format that provides an economic profile of the trucking industry.
Determined through default conventions : An advantage of dynamic scoping is that access to nonlocal variables is considerably faster than accesses to nonlocals when static scoping is used.
Explain types of interenterprise integration : Explain Types of Interenterprise Integration and discuss the types of interenterprise integration in terms of responsive
Depreciation using the revised amounts and straight line : Depreciation using the revised amounts and straight line - Determine this year's depreciation using the revised amounts and straight line method.
Business ethics and cultural diffrences : Assume a British manager pays a Saudi prince 1% of the contract he helps negotiate in the Kingdom of Saudi Arabia. Did the British manager act ethically?
Worlview-culture-learning and cultural differences : Why is it essential to recognize and validate cultural differences in working with adults in helping professions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a research report on design of a cisco router

Systems research and investigate novel ideas and applications.

  Using the models in system design

In the System Analysis and Design: Models are used extensively in the wide variety of the technical occupations beyond the information technology.

  Type of connections in elevator shaft

Describe what type of connections would work within the elevator shaft. If more than one choice is possible, choose the best option and describe the reasons for your choice.

  Designing the flow chart

Draw a flowchart describing the following given situations: The data found on employee time cards are keyed onto the hard disk before they are processed by the computer.

  Initialize the loop control variable before the program

In boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I want to change the value of the loop control variable in the body of loop.

  Impact of computer on people and organizations

Impact of computer on people and organizations

  Briefly explain the difference mesh, bus, ring, and star top

Briefly explain the difference, including advantages and disadvantages Ethernet, Token Ring, FDDI, and Wireless.

  Program that has a function named presentvalue

Program that has a function named presentValue

  Plan an er diagram

Plan an ER diagram

  What is home wireless network and security

What is home wireless network and security Methodology- Review topics covered in lecture hours, from textbook, reference books plus online research, to behaviour a comprehensive study about wireless network security implementation at home.

  Generating a class known as point

Generate a class known as Point which has following private members: Float x - x-coordinate of point,,Float y - y-coordinate of point.

  How company x is going to expand its information system

Develop a list of actions you might conceivably take if no agreement is reached.

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