ECAT Computer Science MCQS Set 11

ECAT Computer Science MCQS Page 2


Which of the following data type offers the highest precisions
Long double
Float
Long int
Unsigned long unit

Which is NOT a valid statement to initialize a variable?
int n=100;
long,population=15000;
char n []=”hello World”;
cons int N=100;

Which variable should be used to store the value “I want an A in this exam”.
char
int
float
character

A candidate key is
A group attribute that can be the primary key
Primary key
The primary key selected to be the key of relation
All of them

Which is NOT a rule for naming variables?
All the above
Use a descriptive name for the value
Start the name of variable with a letter
Use nothing but letters, digits, or the underscore character

An attribute that uniquely identify each row in a relation is called
Primary key
Column
Foreign
Duplicate key

Which is a valid statement for initializing of a variable?
All of these
int n=100;
int x=50, y=75;
char grade=’a’

Which of the following is used to separate each variable while declaring more than one variable on the same line?
Commas
Colons
Pipes
Semicolons

Which term describes the kind of values that a variable can store?
Datatype
Varaible name
Varaibletype
Varaiblesize

Relational operators are used to
Compare two values
Establish a relationship among variables
Construct compound condition
Performs arithmetic operators

Which is a valid statement for declaring a variable?
All
int marks;
int a,b,c;
Double salary;

The number of bytes used by long int data type in C is:
4
2
12
16

Continue Reading Go to Next Page

Be the first to comment

Leave a Reply

Your email address will not be published.


*