Interview questions
Computer interview questions – page 69
3,888 questions. Tap “Show answer” to check yourself.
-
Which of the following is not a way of protection?
- A.Physical Security
- B.Personal Security
- C.Piracy
- D.Personnel security
Show answer
C. Piracy
-
Who among the following began to examine unethical and illegal uses of computers by computer professionals in mid 1960s Menlo Park, California?
- A.Charles Babbage
- B.Bill Gates
- C.Norbert Wiener
- D.Donn Parker
Show answer
D. Donn Parker
-
The members of a class are accessed using ___
- A.New operator
- B.Dot operator
- C.+ operator
- D.Size of operator
Show answer
B. Dot operator
-
The body of a class is terminated by a _____
- A..
- B.;
- C.:
- D.#
Show answer
B. ;
-
By default class members are treated as ____
- A.Public
- B.Private
- C.Protected
- D.Unprotected
Show answer
D. Unprotected
-
The binding of data and functions together into a single entity is known as ____
- A.Inheritance
- B.Encapsulation
- C.Overloading
- D.Polymorphism
Show answer
B. Encapsulation
-
Which of the following is a way to bind the data and its associated functions together?
- A.Methods
- B.Class
- C.Data
- D.Functions
Show answer
B. Class
-
The lifetime of a ___ variable, is the life time of the function block.
- A.Function scope
- B.File scope
- C.Local scope
- D.Global scope
Show answer
A. Function scope
-
A function can be invoked from another function using its ___
- A.Value
- B.Return
- C.Name
- D.Variables
Show answer
C. Name
-
The ___ reveals the hidden scope of a variable.
- A.++
- B.*
- C.%
- D.Scope operator
Show answer
D. Scope operator
-
In ___ a local variable is defined within a block.
- A.Class scope
- B.Local scope
- C.Function scope
- D.File scope
Show answer
B. Local scope
-
The calling function parameters are called as ___
- A.Actual parameters
- B.Dummy parameters
- C.Duplicate parameters
- D.Formal parameters
Show answer
A. Actual parameters
-
The functions that return no value is declared as ___
- A.Null
- B.Void
- C.Static
- D.Public
Show answer
B. Void
-
In ___ method any change in the formal parameters is not reflected back to the actual parameter.
- A.Call by value
- B.Call by reference
- C.Call
- D.Return
Show answer
B. Call by reference
-
The main purpose of function prototype is to help the ____ to check the data requirement of the function.
- A.Object
- B.Linker
- C.Interpreter
- D.Compiler
Show answer
D. Compiler
-
An ___ looks like a normal function in the source file but inserts the function's code directly into the calling program.
- A.Inline
- B.Online
- C.Mainline
- D.Line
Show answer
A. Inline
-
Inline keyword is just a request to the ___
- A.Object
- B.Linker
- C.Interpreter
- D.Compiler
Show answer
D. Compiler
-
Computer ethics has its roots in the work of ___ during World War II.
- A.Hermen Horllerith
- B.Norbert Wiener
- C.Blaise Pascal
- D.Charles Babbage
Show answer
B. Norbert Wiener
-
____ is a self- replicating program that can cause damage to data and files stored on your computer.
- A.Virus
- B.Freeware
- C.Piracy
- D.None of the given
Show answer
A. Virus
-
Making and using duplicate hardware and software is called ___
- A.Piracy
- B.Free copy
- C.Copy right
- D.None of these
Show answer
A. Piracy
-
The protection of hardware, facilities magnetic disks, and other illegally accessed, stolen, damaged or destroyed items refers to ____
- A.Physical security
- B.Personal security
- C.Personnel security
- D.None of the given
Show answer
A. Physical security
-
____ refers to software setups that permit only authorized access to the system.
- A.Personnel security
- B.Personal security
- C.Physical security
- D.None of these
Show answer
B. Personal security
-
Private access specifier is accessible by special function called ____
- A.Void
- B.Inline
- C.Friend
- D.All of these
Show answer
C. Friend
-
_____ member variable are initialized only once when the first object of its class is created.
- A.Inline
- B.Static
- C.Private
- D.Public
Show answer
B. Static
-
One copy of ___ data members of a class are shared by all objects of that class.
- A.Public
- B.Static
- C.Private
- D.Inline
Show answer
B. Static
-
The members defined within the class behave like ____functions.
- A.Inline
- B.Public
- C.Friend
- D.None of these
Show answer
A. Inline
-
:: is a ___
- A.Short circuit AND
- B.Short circuit OR
- C.Not operator
- D.Scope resolution operator
Show answer
D. Scope resolution operator
-
A class belongs to which of the following data types?
- A.Array Type
- B.Derived Type
- C.Built-in Type
- D.User Defined Type
Show answer
D. User Defined Type
-
Every class declaration is terminated by ____
- A.,(comma)
- B..(dot)
- C.; (semi colon)
- D.:: (double colon)
Show answer
C. ; (semi colon)
-
A member function calling another function directly is called as ____
- A.Nesting functions
- B.Recursive functions
- C.Inline functions
- D.Friend functions
Show answer
A. Nesting functions