Computer Science - Online Test

Q1.

A structure declaration is given below.

struct Time

{

int hours;

int minutes;

int seconds;

}t;

Using above declaration which of the following refers to seconds.

Answer : Option D
Explaination / Solution:
No Explaination.


Q2. Which of the following create a temporary instance?
Answer : Option B
Explaination / Solution:
No Explaination.


Q3. Which generation of computer used IC’s?
Answer : Option C
Explaination / Solution:
No Explaination.


Q4. How many characters can be handled in Binary Coded Decimal System?
Answer : Option A
Explaination / Solution:
No Explaination.


Q5. What is the smallest size of data represented in a CD?
Answer : Option C
Explaination / Solution:
No Explaination.


Q6. Which of the following is the scope operator ?
Answer : Option D
Explaination / Solution:
No Explaination.


Q7.

What will be the output of this program?

#include <iostream>

using namespace std;

struct ShoeType

{

string name;

double price;

};

int main()

{

ShoeType shoe1, shoe2;

shoe1.name = "Adidas";

shoe1.price = 9.99;

cout<< shoe1.name<< " # "<< shoe1.price<<endl;

shoe2 = shoe1;

shoe2.price = shoe2.price / 9;

cout<< shoe2.name<< " # "<< shoe2.price;

return 0;

Answer : Option A
Explaination / Solution:
No Explaination.


Q8. For 11012 hat is the Hexadecim l equivalent?
Answer : Option C
Explaination / Solution:
No Explaination.


Q9. Display devices are connected to the computer through.
Answer : Option D
Explaination / Solution:
No Explaination.


Q10. Which of the following is a properly defined structure?
Answer : Option D
Explaination / Solution:
No Explaination.