Reference no: EM13326572
1.Which keywords in C# are not also keywords in Java?
2. Indicate when each of the following bindings takes place in Java(language design time, language implementation time compile time, link time, load time, or run time). If more than one time is possible, choose the latest possible time.
a. Binding of an array to a specific length
b. Binding of the double type to specific number of bytes
c. Binding of a method call to a specific method
d. Binding of a method to a specific type
e. Binding of the = operator to a specific number of byte to be copied
3.The following grammar describes the syntax of C's floating-point constants. Write a single Perl pattern that matches the strings that can be derived from <float-constant>
<float-constant> ---> <fract-constant>[<exponent>][<float-suffix>]
| <digit-sequence><exponent>[<float-suffix>]
<fract-constant> ---> [<digit-sequence>] . <digit-sequence>
| <digit-sequence> .
<exponent> ---> e[<sign>]<digit-sequence>
| E[<sign>]<digit-sequence>
<sign> ---> +|-
<digit-sequence> ---> <digit> | <digit-sequence><digit>
<digit> ---> 0|1|2|3|4|5|6|7|8|9
<float-suffix> ---> f|l|F|L
4. The following questions refer to Java' enumeration types.
a. Is it legal to print a value of an enumeration type? If so, how is it displayed?
b.Is an enumeration constant allowed to appear in more than one enumeration type? If so, how does Java determine to which enumeration a constant belongs when it is used?
c. Can the values of an enumeration type be coerced to integers?
d. Can any other types be cored to an enumeration type?
5.What are the advantage of using a rectangular array in C#, as opposed to using an array whose elements are arrays?
6.Translate the following Ada declaration into C99, using designated initializers to make the code as short as possible:
A: array (0..999) of Integer : =
(0 => 4, 1=> 3, 998 => 9, 999=> 7, others =>0);
8. LET a BE THE FOLLOWING Ada array:
A: array (1..20, -2..10, 5..100) of Integer;
Assuming that the address of A is 1000 and that integers require four bytes of memory, determine the address of each of the following array elements.
a. A(5, 5, 5)
b. A(4, -1, 10)
c. A(10, 0, 50)
Diameter how far away is the cluster
: The Pleidas, a star cluster in the constellation of Taurus the bull, appears about one finger width big in the sky. If one assumes the cluster to be about 7 light years in diameter how far away is the cluster? Give answer in units of light years.
|
Called the categorical imperative
: Immanuel Kant's principle, called the categorical imperative, requires that everyone be treated as:
|
The def corporation is incorporated in texas
: The DEF Corporation is incorporated in Texas. It wishes to do business in Oklahoma. Before DEF can legally do businesses in Oklahoma, which of the following must it do?
|
Describes the alter-ego doctrine in corporate law
: Which comment best describes the alter-ego doctrine in corporate law?
|
Which keywords in c# are not also keywords in java
: What are the advantage of using a rectangular array in C#, as opposed to using an array whose elements are arrays?
|
Prepare a trial balance on april
: Journalize the April transactions using a periodic inventory system and using T accounts, enter the beginning balances in the ledger accounts and post the April transactions.
|
What is the breaking strength in newtons of the string
: A string under a tension of 49.0 N is used to whirl a rock in a horizontal circle of radius 2.40 m at a speed of 20.8 m/s on a frictionless surface, What is the breaking strength, in newtons, of the string
|
What will happen to respiration if add buffer to environment
: What would happen to respiration if we add a buffer or base to the external environment of the bacteria (assume bacteria is in a closed environment like a tube) How would this affect the mechanism of respiration
|
Motion for summary judgment in a civil case
: If a defendant files a motion for summary judgment in a civil case, what is the defendant saying?
|