ICS Part 2 Computer Science Chapter 9 Online Test With Answers

image
image
image

ICS Part 2 Computer Science Chapter 9 Online Test

Sr. # Questions Answers Choice
1 Variable and constant names can not contain a(n): Number Underscore Upper case letter Lower case letter
2 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
3 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
4 a+=b is equivalent to: b+=a a=+b a=a+b b=b+a
5 C is strongly typed language, it means that: Every program must be compiled before execution Every variable must be declared before it is being used The variable declaration also defines the variable Sufficient data types are available to manipulate each type of data
6 Which of the following operations has lowest precedence? ! + = ==
7 Which of the following is a valid character constant? a "Hello" '6' =
8 A memory location with some data that cannot be changed is called: Constant Variable Keyword Address
9 Variable are created in: RAM ROM Hard Disk USB
10 A memory location with some data can be changed is celled: Constant Variable Named constant Address
11 A candidate key is Primary key The primary key selected to be the key of relation A group attribute that can be the primary key All of them
12 a+=b is equivalent to a+=b a=+b a=a+b b=b+a
13 The logical not operator denoted by is Ternary operator Unary operator a=a+b b=b+a
14 Relational operators are used to Establish a relationship among variables Compare two values Construct compound condition Performs arithmetic operators
15 Which of the following operators has lowest precedence ! + = =
Download This Set