Computer Science Engineering MCQ Questions

Computer Science Engineering

Computer Science Engineering MCQ Questions. Multiple Choice Questions on Computer Science Engineering. Objective questions on CSE.

1- Which of the following data type stores memory location or address of variables in C++?

(A) TypeDef

(B) Double floating point

(C) Index

(D) Pointer

 

2- What happens when class is inherited in protected mode?

(A) Protected members of the base class will become private in derived class

(B) Public members of the base class will become protected in derived class

(C) Public and protected members of the base class will become protected in derived class

(D) Public, private and protected members of the base class will become protected in derived class

 

3- Which of the following is not true about destructor?

(A) Need to call externally.

(B) Releasing all the network resources.

(C) Closing all the database connections or files.

(D) Releasing the release locks.

 

4- What happens when user defines a parameterized constructor in Java and not default constructor?

(A) Defining default constructor is mandatory.

(B) User needs to define default constructor also, else there will be error at run time.

(C) No need to define default constructor.

(D) User needs to define default constructor also, else compiler will give error.

 

5- Using which data type in C++, a user can write information to files and read information from files?

(A) iof stream

(B) f stream

(C) of stream

(D) if stream

 

6- How to represent a negative in Sign magnitude?

(A) The last bit will represent sign. Sign bit ‘0’ represents negative sign.

(B) The last bit will represent sign. Sign bit ‘1’ represents negative sign.

(C) The first bit will represent sign. Sign bit ‘0’ represents negative sign.

(D) The first bit will represent sign. Sign bit ‘1’ represents negative sign.

 

7- Which of the following is not a direct pointing device?

(A) Joy stick

(B) Mouse

(C) Touch screen

(D) Touchpad

 

8- What happen if static method is declared in abstract class?

(A) Error when inherited by another class

(B) Run time error

(C) Compilation error

(D) Execute successfully

 

9- What is true about decomposition into modules?

(A) Increases duplication of code

(B) Makes it easier to test

(C) Decreases collaboration

(D) Increases complexity

 

10- Which of the following is not the type of JIT in Visual Basic?

(A) Normal JIT

(B) Econo-JIT

(C) Post-JIT

(D) Pre-JIT

 

ANSWERS:

1-(D), 2-(C), 3-(A), 4-(D), 5-(B), 6-(D), 7-(A), 8-(D), 9-(B), 10-(C)