CSC148 Exam Study Questions 2024 with
Complete solutions (A Graded)
Type Contract - ANSWER Calling functions with specified type of arguments (if
not satisfied, code wont work)
Primitive Type - ANSWER A set of data types which creates other data types
What are the different primitve data types? - ANSWER integer, string, float,
boolean, float, none (none is value and type)
Compound Type - ANSWER A collection of primitive data types
What are the different compound types? - ANSWER List, dictionary, tuples
Complete solutions (A Graded)
Type Contract - ANSWER Calling functions with specified type of arguments (if
not satisfied, code wont work)
Primitive Type - ANSWER A set of data types which creates other data types
What are the different primitve data types? - ANSWER integer, string, float,
boolean, float, none (none is value and type)
Compound Type - ANSWER A collection of primitive data types
What are the different compound types? - ANSWER List, dictionary, tuples