Question: The programming languages of C + + and Java are considered strongly typed languages. Strongly typed languages require you to tell them what data type
The programming languages of C and Java are considered strongly typed languages. Strongly typed languages require you to tell them what data type is to be used for variables and if they do not match, will cause a syntax error. For example, in the following statement would declare a variable called name of type string and set it equal to "James Nichols".
string name"James Nichols";
However, in C the following would create a syntax error because the data types don't match string and integer
string name ;
Because these languages require specifying data types, the same is true for the data type that will be returned by functions. Below is an example of the main function in C where integer is the data type and the return statement must have a value that is of the data type specified:Which of the following would be something to watch for in Python because Python is not a strongly typed language? Choose TWO.
Be careful to only reassign values as variables can change between one data type to another without any issues as long as you only do this in the main method.
Ensuring you create an integer to return in your main method.
Be careful about reassigning values as variables can change between one data type to another without any issues.
Ensuring you're returning the correct data type in a function's return statement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
