What data type does the isinteger() function return?
Every value has a type.
Use the built-in function type to find the type of a value.
Types control what operations (or methods) can be performed on a given value.
You can use the “+” and “*” operators on strings.
Strings have a length (but numbers don’t).
Must convert numbers to strings or vice versa when operating on them.
Can mix integers and floats freely in operations.
Variables only change value when something is assigned to them.
What data type does the isInteger function return?isInteger() method returns true if a value is an integer of the datatype Number. Otherwise it returns false .
Which function returns a string within a string?The function strstr returns the first occurrence of a string in another string. This means that strstr can be used to detect whether a string contains another string.
Which of the following error occurs when a real value is attempted to be assigned to an integer variable?The Overflow error occurs when a variable is assigned a value it cannot contain. This typically relates to Integer variables, which can only hold values up to 32767. If a value such as 40000 is assigned to an Integer, an Overflow error will occur.
|