ECAT Computer Science MCQS Set 10

Google Ads1

ECAT Computer Science MCQS Page 7


Which statement is true about data types?
Each data type has different memory requirements
Data type has no memory requirements
Each data type has same memory requirements
None of the above

Variable are created in:
RAM
ROM
Hard Disk
USB

Which of the following statement is correct?
int day,night;
float num1;num2;
int continue=5.0;
string black=’white’;

The symbol ‘=’ represents
Assignment operator
Comparison operator
Equal to operator
None of these

Which of the following is NOT a valid identifier?
return
myInt
myInteger
total3

Which of the following operators has lowest precedence
=
!
+
=

The number of bytes used by char data type in C is:
1
2
121
16

Which of the following data types is most appropriate for storing a name?
char
float
int
long

Which of the following statements is NOT legal?
char ch=”cc”
char ch=’b’;;
char ch=’0′
char ch=65;

Which is a numeric data type ?
Both a and b
float
int
char

Which of the following are required to declare a variable?
Both b and c
keyword
Variable name
Data type

What happens when the result of a calculation exceeds the capacity of data type?
Over flow
System error
Logic error
Syntax error
Google Ads

Be the first to comment

Leave a Reply

Your email address will not be published.


*