Corelynx: Technical Test 2
Your email will be recorded when you submit this form
* Indicates required question
ATTEMPT ALL QUESTIONS
Each question carries one marks each. (No negative marking) Time : 25 minutes Full Marks : 25
Which of the following is not correct about C programming? * 1 point
C Program is a top down approach
Every C Program must be saved as .cpp
Every Statement in C program must end with semicolon
A C program can be compiled in UNIX operating system.
Abstraction is_____? * 1 point
Technique of combining more than one member functions into a single unit.
Mechanism of combining more than one data member into a single unit.
Mechanism of combining more than one data members and member functions that
implement on those data members into a single unit
It is a process of hiding the implementation details and showing only functionality to
the user.
What will be the output of the following: * 1 point
main()
{
int k = -7;
int p = k%2;
printf("%d",k);
-2
-3
What will be the output of the following program ? * 1 point
main()
{
int p = 3, q = 6;
int z = (p++) * p + (--q);
printf("%d",z);
}
16
17
30
32
What will be the output of the following program? * 1 point
10 20
10 30
20 10
20 30
What will be output of the following program? * 1 point
123
1 2 3 None
2 3 None
None
Find the output of the following code. * 1 point
main()
float a = 3.330;
int z = (a==3)?10:20;
printf("%d",z);
10
20
0.00000
Compile Time Error
Which statement is incorrect ? * 1 point
The Brackets () have the highest precedence
The equal to = operator has the lowest precedence
The addition operator + and the subtraction operator – have an equal precedence
The division operator / has comparatively higher precedence as compared to a
multiplication operator
What will be the output of the following program? * 1 point
abc
abcde
Runtime Error
Caught exception thrown
Which of the following is a mechanism of static polymorphism ? * 1 point
Operator Overloading
Function Overloading
Operator Overriding
Function Overriding
which one can be used for testing the strings for equality? * 1 point
isequals()
isequal()
equals()
equal()
What will be the output of the following code - * 1 point
Hello
Hello Hello
Infinite Loop
No Output
Which of the option is false about the final keyword? * 1 point
A final method cannot be overridden in its subclasses.
A final class cannot be extended.
A final class cannot extend other classes.
A final method can be inherited.
What will be the output of the following program ? * 1 point
main()
int i;
i = 20;
printf("%d",sizeof(i));
For Car and Vehicle class, correct way of inheritance is * 1 point
Class Car: public Vehicle
Class Vehicle: public Car
Both are correct way
None is correct way
Public class Test{ Public static void main(String args[]) * 1 point
String str1 = “One”;
String str2 = “Two”;
System.out.println(str2.concat(str1));
One
OneTwo
TwoOne
Two
What will be the output of the following java code? * 1 point
C Co Cor Core Corel Corely Corelyn Corelynx
Compile time error, showing 1 error
Run Time error showing no output
Will show only Corelynx one time only,
Select the valid statement. * 1 point
char[] ch = new char(5)
char[] ch = new char[5]
char[] ch = new char()
char[5] ch = new char[]
If we assign in an string array variable arr with the value of "corelynx", * 1 point
to print x, which one of the following is the best option?
printf(" %c ",array[strlen(a)-1]);
printf(" %c",array[8]);
printf(" x %c ",array[len-1]); // where len is string length of the string
printf(" %c ",array[5]);
What is the correct statement about 'Super' Keyword ? * 1 point
To call a method or constructor of the superclass
To create a new instance of a class
To hide a superclass method
To make a method final
What is the output of C Program as given below? * 1 point
int main() {
int a[] = {1,2,3,4};
int b[4] = {5,6,7,8};
printf("%d,%d", a[0], b[4]);
{1,1}
{1,5}
{0 0}
Compiler error
Find the errors in the following java program * 1 point
Error in Line 1, Line 3, Line 5 and Line 7
Error in Line 1, Line 3 and Line 5
Error in Line 3 and Line 7
Error in Line 5
Find the output of the following program. * 1 point
6
What is the output of the below Java program? * 1 point
int time=50;
do {
System.out.print(time + ",");
time++;
}while(time < 53)
{50,51,52}
{50,51,52,}
Compile Time Error
None Of The Above
What does #include stdio.h does in C programming language? * 1 point
It includes stdio.h into existing C program..
#include increases the size of C program by including the specified file contents like
functions, constants etc.
#include includes specified file before compilation.
All the above
Back Submit Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy
Forms