Computer Science - Online Test

Q1. Where will you select the option to log out, suspend, restart, or shut down from the desktop of Ubuntu OS?
Answer : Option A
Explaination / Solution:
No Explaination.


Q2. Which operator to be used to access reference of a variable?
Answer : Option C
Explaination / Solution:
No Explaination.


Q3. Which of the following function is with a return value and without any argument ?
Answer : Option B
Explaination / Solution:
No Explaination.


Q4.

What is the output of this program?

#include <iostream>

#include <string.h>

using namespace std;

int main()

{

 struct student

 {

 int n;

 char name[10];

 };

 student s;

 s.n = 123;

 strcpy(s.name, "Balu");

 cout<<s.n;

 cout<< s.name <<endl;

return 0; }

Answer : Option A
Explaination / Solution:
No Explaination.


Q5. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
Answer : Option A
Explaination / Solution:
No Explaination.


Q6. Which one of the following is the main memory?
Answer : Option B
Explaination / Solution:
No Explaination.


Q7. 2^50 is referred as
Answer : Option C
Explaination / Solution:
No Explaination.


Q8. What is the capacity of 12cm diameter DVD with single sided and single layer?
Answer : Option A
Explaination / Solution:
No Explaination.


Q9. This can be used as alternate to endl command:
Answer : Option D
Explaination / Solution:
No Explaination.


Q10. Which is return data type of the function prototype of add(int, int); ?
Answer : Option A
Explaination / Solution:
No Explaination.