Motorola Previous Years Solved Sample Placement Papers
-
Select the query through which you can display the records within a given range?
A: select row from emp where rowname <=&rangeend
B: select row from emp where rowname <&rangeend
C: select column from emp where rowname &rangeend
D: select column from emp where rowname <=&rangeend
Ans: A -
Select the query which allows you to select rownum and employee name (empname) from a record(emp)?
A: select rownum, enum from emp;
B: select colnum, ename from emp;
C: select colname, enum from emp;
D: select rownum, ename from emp;
Ans: D -
What does a one-to-one relationship indicate?
A: More entities are needed.
B: The model should be denormalized.
C: The tables are not properly indexed.
D: The model cannot be implemented physically.
Ans: B -
What clause do you use in the query to help avoid a table scan?
A: GROUP BY clause
B: HAVING clause
C: FROM clause
D: WHERE clause
Ans: D -
What is the value of z?
int z,x=5,y=-10,a=4,b=2;
z = x++ - --y * b / a;A: 5
B: 6
C: 10
D: 11
Ans: B -
What is the output of the program?
void main()
{
int const * p=5;
cout<<++(*p);
}A: 5
B: Memory value
C: Compiler error
D: Garbage value
Ans: C -
What is the output of the program?
main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
cout<}A: mmmm
aaaa
nnnnB: man
C: Compiler error
D: None of the above
Ans: B -
What is the output of the program?
main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
cout<<"I love U";
else
cout<<"I hate U";
}A: I hate U
B: I love U
C: Garbage value
D: None of the above
Ans: A