Dynamic Type Binding

Is it more flexible to use dynamic type binding in programming than static type binding? Take the quiz to know more

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen

QUESTION OF
Views #: 561
Questions #: 16
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

Dynamic Type Binding in programming

1 pts
volume_mute

A variable is bound to a variable when it is assigned a value in an assignment statement.

note_alt Add notes
flag Flag

Correct Answer

Explanation

A variable can dynamically bind to

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

Static Binding vs Dynamic Binding

1 pts

When the type of a variable is (1) bound, the name of the variable can be thought of being bound to a type, in the sense that the type and name of a variable are simultaneously bound. However, when a variable’s type is (2) bound, its name can be thought of as being only temporarily bound to a type. In reality, the names of variables are never bound to types. Names can be bound to variables and variables can be bound to types.

Please drag and drop the selected option in the right place or type it instead
statically
dynamically
note_alt Add notes
flag Flag

Correct Answer

Explanation

Languages in which types are dynamically bound are dramatically different from those in which types are statically bound

1 pts
volume_mute

The primary advantage of static binding of variables to types is that it provides more programming flexibility.

note_alt Add notes
flag Flag

Correct Answer

Explanation

A program to process numeric data

1 pts
volume_mute

A program to process numeric data in a language that uses dynamic type binding can be written as a _________ program, meaning that it is capable of dealing with data of any numeric type.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Dramatic shift to languages that use dynamic type binding

1 pts
volume_mute

Before the mid-1990s, the most commonly used programming languages used static type binding, the primary exceptions being some functional languages such as LISP. However, since then there has been a significant shift to languages that use dynamic type binding. In Python, Ruby, JavaScript, and PHP, type binding is dynamic.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Way of assigning values JavaScript variables

1 pts
volume_mute

It is possible in JavaScript to write two consecutive assignment statements like that

list = [10.2, 3.5];

list = 47;

 

note_alt Add notes
flag Flag

Correct Answer

Explanation

The option of dynamic type binding was introduced in C# 2010

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

C# 2010 dynamic type declaration

1 pts

A variable can be declared to use dynamic type binding by including the _________ reserved word in its declaration,

Missing
note_alt Add notes
flag Flag

Correct Answer

Explanation

In pure object-oriented languages—for example, Ruby—all variables are references and do not have types

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

In pure object-oriented languages, all data are objects and any variable can reference any object

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

Java variables vs Ruby variables

1 pts

Unlike the references in Java, which are restricted to referencing (1) specific type of value, variables in Ruby can reference (2) object

Please drag and drop the selected option in the right place or type it instead
any
one
note_alt Add notes
flag Flag

Correct Answer

Explanation

There are two main disadvantages to dynamic type binding

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

Will JavaScript detect the keying error in the following example?

1 pts
volume_mute

suppose that in a particular JavaScript program, i and x are currently the names of scalar numeric variables and y is currently the name of an array. Furthermore, suppose that the program needs the assignment statement

i = x;

but because of a keying error, it has the assignment statement

i = y;

note_alt Add notes
flag Flag

Correct Answer

Explanation

Assignment validation in static type binding

1 pts
volume_mute

In languages that use static type binding such as C, C++ and Fortran, it happens in many cases that that type of the RHS is automatically converted to the type of the LHS of an assignment statement.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Languages that use dynamic type binding are usually slower

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

Keywords
Year 11