ICS Part 2 Computer Science Online Test With Answers

image
image
image

ICS Part 2 Computer Science Online Test

Sr. # Questions Answers Choice
1 The number of bytes used by double data type in C is: 2 8 12 16
2 The number of bytes used by float data type in C is: 2 4 121 16
3 The float, long float and double data types are known as: Integer data character data Integral data Real data
4 The data type can handle decimal places is: Long float char string
5 the integer, long and short data types are known as: Integer data types Non-integral data types float data types Non-numeric data types
6 An integer variable can store the value: -1.1 "123" 32898 5.5
7 The number of bytes used by long int data type in C is: 2 4 12 16
8 The number of bytes used by int data type in C is: 2 8 12 16
9 Which is a numeric data type ? float int Both a and b char
10 Which data type is used to store numeric value with no decimal point? int char float All
11 Which statement is true about data types? Data type has no memory requirements Each data type has different memory requirements Each data type has same memory requirements None of the above
12 Which term describes the kind of values that a variable can store? Varaible name Datatype Varaibletype Varaiblesize
13 Which of the following are valid variable names? Long Integer Notlongenough Both B and C
14 Which of the following is NOT a valid identifier? return myInt myInteger total3
15 Variable and constant names can not contain a(n): Number Underscore Upper case letter Lower case letter
16 Which is NOT a rule for naming variables? Use a descriptive name for the value Start the name of variable with a letter Use nothing but letters, digits, or the underscore character All the above
17 Which is true about a variable? The name and data value can both change The name can change, but the data value cannot The name cannot change, but the data value can The name and the data value both cannot changed
Download This Set