[SOLVED] Assignment 2 solution: How does the typing system of PHP and JavaScript differ from ...

24.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (2 votes)

 

 

 

  1. How does the typing system of PHP and JavaScript differ from that of Java? (20 pts)
  2. Why does C++ include the features of C that are known to be unsafe?
  3. What are the arguments both for and against the idea of a typeless language? (20 pts)
  4. Make an educated guess as to the most common syntax error in Lisp. (10 pts)
  5. What array structure is included in C# but not in C, C++, or Java? (10 pts)
  6. Using C#, declare and display several variables by selecting for each one of them the most appropriate of the types sbyte, byte, short, ushort, int, uint, long and ulong in order to assign them the following values: 52,130; -115; 4825932; 97; -10000; 20000; 224; 970,700,000; 112; -44; -1,000,000; 1990; 123456789123456789. (20 pts)
  7. Using C#, which of the following values can be assigned to variables of type float, double and decimal: 5, -5.01, 34.567839023; 12.345; 8923.1234857; 3456.091124875956542151256683467? (10 pts)
  8. Using C#, declare two variables of type string and assign them a value “The “use” of quotations causes difficulties.” (without the outer quotes). In one of the variables use quoted string and in the other do not use it. (10 pts)
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.