answersLogoWhite

0

AllQ&AStudy Guides
Best answer

A strongly typed programming languages is one that requires the type of a variable to be explicitly stated. C is a strongly typed language. You must declare the type of data a variable will store for C to interpret it: int myVariable;

myVariable = 25; Perl is a loosely typed language. There is no need to declare the variable type before using it: $myVariable = 25;

$myVariable = "A String.";

This answer is:
Related answers

A strongly typed programming languages is one that requires the type of a variable to be explicitly stated. C is a strongly typed language. You must declare the type of data a variable will store for C to interpret it: int myVariable;

myVariable = 25; Perl is a loosely typed language. There is no need to declare the variable type before using it: $myVariable = 25;

$myVariable = "A String.";

View page

The C language is considered strongly typed by many, and is considered weakly typed by others.

While the C language requires each data item to be declared with a specific type, which qualifies it as a strongly typed language in the views of many, the rules of cross-type assignments are lax. For example, assignment of one enumerated value to a variable designed for a different enumeration is accepted without error.

View page

C is not a strongly-typed language, it is weakly-typed. This means that it is possible to work around the type system. That is, types can be explicitly or implicitly converted to other types. A strongly-typed language simply wouldn't allow this. However, C is statically-typed, which means that values are bound to types at compile time, rather than at runtime as they are in dynamically-typed languages.

View page

Apex is a strongly typed, object-oriented programming language. A class is a template or blueprint from which objects are created. An Apex Class is a library of attributes and methods and serves as a blueprint to create Apex objects.

View page

Yes, Python is strongly-typed.

You can test if any language is strongly-typed with a very simple example:

x = 1

y = "2"

z = x + y

The above will not compile in a strongly typed language because y is a string, not a number. That is, the language will not implicitly convert y to a number simply because you used it in a numeric expression. A weakly-linked language will perform the conversion behind the scenes.

Note that some strongly typed languages will permit the following:

value = 1

value = "one"

This is an example of dynamic typing; the same variable has explicitly changed type. This is not possible with statically typed languages. However, dynamic typing does not imply weak typing. Dynamic typing is explicit, weak typing is not.

View page
Featured study guide
📓
See all Study Guides
✍️
Create a Study Guide
Search results