Interview questions

Computer interview questions – page 69

3,888 questions. Tap “Show answer” to check yourself.

  1. Which of the following is not a way of protection?

    1. A.Physical Security
    2. B.Personal Security
    3. C.Piracy
    4. D.Personnel security
    Show answer

    C. Piracy

  2. Who among the following began to examine unethical and illegal uses of computers by computer professionals in mid 1960s Menlo Park, California?

    1. A.Charles Babbage
    2. B.Bill Gates
    3. C.Norbert Wiener
    4. D.Donn Parker
    Show answer

    D. Donn Parker

  3. The members of a class are accessed using ___

    1. A.New operator
    2. B.Dot operator
    3. C.+ operator
    4. D.Size of operator
    Show answer

    B. Dot operator

  4. The body of a class is terminated by a _____

    1. A..
    2. B.;
    3. C.:
    4. D.#
    Show answer

    B. ;

  5. By default class members are treated as ____

    1. A.Public
    2. B.Private
    3. C.Protected
    4. D.Unprotected
    Show answer

    D. Unprotected

  6. The binding of data and functions together into a single entity is known as ____

    1. A.Inheritance
    2. B.Encapsulation
    3. C.Overloading
    4. D.Polymorphism
    Show answer

    B. Encapsulation

  7. Which of the following is a way to bind the data and its associated functions together?

    1. A.Methods
    2. B.Class
    3. C.Data
    4. D.Functions
    Show answer

    B. Class

  8. The lifetime of a ___ variable, is the life time of the function block.

    1. A.Function scope
    2. B.File scope
    3. C.Local scope
    4. D.Global scope
    Show answer

    A. Function scope

  9. A function can be invoked from another function using its ___

    1. A.Value
    2. B.Return
    3. C.Name
    4. D.Variables
    Show answer

    C. Name

  10. The ___ reveals the hidden scope of a variable.

    1. A.++
    2. B.*
    3. C.%
    4. D.Scope operator
    Show answer

    D. Scope operator

  11. In ___ a local variable is defined within a block.

    1. A.Class scope
    2. B.Local scope
    3. C.Function scope
    4. D.File scope
    Show answer

    B. Local scope

  12. The calling function parameters are called as ___

    1. A.Actual parameters
    2. B.Dummy parameters
    3. C.Duplicate parameters
    4. D.Formal parameters
    Show answer

    A. Actual parameters

  13. The functions that return no value is declared as ___

    1. A.Null
    2. B.Void
    3. C.Static
    4. D.Public
    Show answer

    B. Void

  14. In ___ method any change in the formal parameters is not reflected back to the actual parameter.

    1. A.Call by value
    2. B.Call by reference
    3. C.Call
    4. D.Return
    Show answer

    B. Call by reference

  15. The main purpose of function prototype is to help the ____ to check the data requirement of the function.

    1. A.Object
    2. B.Linker
    3. C.Interpreter
    4. D.Compiler
    Show answer

    D. Compiler

  16. An ___ looks like a normal function in the source file but inserts the function's code directly into the calling program.

    1. A.Inline
    2. B.Online
    3. C.Mainline
    4. D.Line
    Show answer

    A. Inline

  17. Inline keyword is just a request to the ___

    1. A.Object
    2. B.Linker
    3. C.Interpreter
    4. D.Compiler
    Show answer

    D. Compiler

  18. Computer ethics has its roots in the work of ___ during World War II.

    1. A.Hermen Horllerith
    2. B.Norbert Wiener
    3. C.Blaise Pascal
    4. D.Charles Babbage
    Show answer

    B. Norbert Wiener

  19. ____ is a self- replicating program that can cause damage to data and files stored on your computer.

    1. A.Virus
    2. B.Freeware
    3. C.Piracy
    4. D.None of the given
    Show answer

    A. Virus

  20. Making and using duplicate hardware and software is called ___

    1. A.Piracy
    2. B.Free copy
    3. C.Copy right
    4. D.None of these
    Show answer

    A. Piracy

  21. The protection of hardware, facilities magnetic disks, and other illegally accessed, stolen, damaged or destroyed items refers to ____

    1. A.Physical security
    2. B.Personal security
    3. C.Personnel security
    4. D.None of the given
    Show answer

    A. Physical security

  22. ____ refers to software setups that permit only authorized access to the system.

    1. A.Personnel security
    2. B.Personal security
    3. C.Physical security
    4. D.None of these
    Show answer

    B. Personal security

  23. Private access specifier is accessible by special function called ____

    1. A.Void
    2. B.Inline
    3. C.Friend
    4. D.All of these
    Show answer

    C. Friend

  24. _____ member variable are initialized only once when the first object of its class is created.

    1. A.Inline
    2. B.Static
    3. C.Private
    4. D.Public
    Show answer

    B. Static

  25. One copy of ___ data members of a class are shared by all objects of that class.

    1. A.Public
    2. B.Static
    3. C.Private
    4. D.Inline
    Show answer

    B. Static

  26. The members defined within the class behave like ____functions.

    1. A.Inline
    2. B.Public
    3. C.Friend
    4. D.None of these
    Show answer

    A. Inline

  27. :: is a ___

    1. A.Short circuit AND
    2. B.Short circuit OR
    3. C.Not operator
    4. D.Scope resolution operator
    Show answer

    D. Scope resolution operator

  28. A class belongs to which of the following data types?

    1. A.Array Type
    2. B.Derived Type
    3. C.Built-in Type
    4. D.User Defined Type
    Show answer

    D. User Defined Type

  29. Every class declaration is terminated by ____

    1. A.,(comma)
    2. B..(dot)
    3. C.; (semi colon)
    4. D.:: (double colon)
    Show answer

    C. ; (semi colon)

  30. A member function calling another function directly is called as ____

    1. A.Nesting functions
    2. B.Recursive functions
    3. C.Inline functions
    4. D.Friend functions
    Show answer

    A. Nesting functions

Companies that ask Computer questions