Motorola Previous Years Solved Sample Placement Papers
-
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: [Your Answer] -
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: [Your Answer] -
What is the output of the program?
main() { char s[] = "man"; int i; for(i = 0; s[i]; i++) cout << s[i]; }
A: mmmm aaaa nnnn
B: man
C: Compiler error
D: None of the above
Ans: [Your Answer] -
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: [Your Answer] -
C# is a programming language, developed by ___.
A: Oracle
B: Microsoft
C: GNU project
D: Google
Ans: B -
C# runs on the ___.
A: .NET Framework
B: Java Virtual Machine
C: Both A and B
D: None of the above
Ans: A -
C# programming language is used to develop:
A: Web apps
B: Desktop apps
C: Mobile apps
D: All of the above
Ans: D -
Is C# an object-oriented programming language?
A: Yes
B: No
Ans: A -
Is C++ an alias of C#?
A: Yes
B: No
Ans: B -
What is the extension of a C# language file?
A: .c
B: .cpp
C: .cs
D: .csp
Ans: C -
CLR stands for ___.
A: Common Type System
B: Common Language Specification
C: Common Language Runtime
D: Java Virtual Machine
Ans: C