MATLAB PROGRAMMING FOR ENGINEERS
ACTUAL TEST PAPER UPDATED
COMPLETE QUESTIONS WITH VERIFIED
ANSWERS
●● Pointer
Answer: Contains an address of another cariable that contains a value a
variable name directly ref a value and a pointer indirectly refs a value
●● Adding an offset
Answer: Indicates which element of the array should be ref offset value
identical to array subscript pointer/offset notation
●● Can array name be treated as a pointer
Answer: Yes aslong as doesn't attempt to modify pointers value
●● Array of Strings
Answer: Each element is a pointer to first character of string
●● Function pointer
Answer: Contains address of function in memory
,●● Characters
Answer: Fundamental building block of source programs
●● Character Constant
Answer: an int value represented as a character in single quotes
'Z' rep z integer value
●● String
Answer: Series of characters treated as a single unit. Written in " "
●● null character ('\0')
Answer: Every string must end with this
●● String literals should not be modified
Answer: True
●● A string in C is a — ending in —
Answer: Array of characters
Null character
●● Value of string
Answer: Address of first character
, ●● isdigit()
Answer: determines whether its argument is a digit
●● isalpha()
Answer: Determines whether argument is uppercase or lowercase letter
●● isalnum()
Answer: determines whether its argument is an uppercase letter, a
lowercase letter or a digit
●● isxdigit(c)
Answer: Checks if character is a hexadecimal digit.
●● islower()
Answer: Determines whether its argument is a lowercase letter (a-z)
●● isupper()
Answer: Determines if character is uppercase (A-Z).
●● tolower
Answer: Converts character to lowercase.
ACTUAL TEST PAPER UPDATED
COMPLETE QUESTIONS WITH VERIFIED
ANSWERS
●● Pointer
Answer: Contains an address of another cariable that contains a value a
variable name directly ref a value and a pointer indirectly refs a value
●● Adding an offset
Answer: Indicates which element of the array should be ref offset value
identical to array subscript pointer/offset notation
●● Can array name be treated as a pointer
Answer: Yes aslong as doesn't attempt to modify pointers value
●● Array of Strings
Answer: Each element is a pointer to first character of string
●● Function pointer
Answer: Contains address of function in memory
,●● Characters
Answer: Fundamental building block of source programs
●● Character Constant
Answer: an int value represented as a character in single quotes
'Z' rep z integer value
●● String
Answer: Series of characters treated as a single unit. Written in " "
●● null character ('\0')
Answer: Every string must end with this
●● String literals should not be modified
Answer: True
●● A string in C is a — ending in —
Answer: Array of characters
Null character
●● Value of string
Answer: Address of first character
, ●● isdigit()
Answer: determines whether its argument is a digit
●● isalpha()
Answer: Determines whether argument is uppercase or lowercase letter
●● isalnum()
Answer: determines whether its argument is an uppercase letter, a
lowercase letter or a digit
●● isxdigit(c)
Answer: Checks if character is a hexadecimal digit.
●● islower()
Answer: Determines whether its argument is a lowercase letter (a-z)
●● isupper()
Answer: Determines if character is uppercase (A-Z).
●● tolower
Answer: Converts character to lowercase.