Intro To Programming Final

31 Questions | Total Attempts: 83

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

.


Questions and Answers
  • 1. 
    A Computer is ____
    • A. 

      A typewriter

    • B. 

      An electronic device

    • C. 

      A calculator

    • D. 

      None of these

  • 2. 
    The basic operations performed by a computers are
    • A. 

      Arithmetic operation

    • B. 

      Logical operation

    • C. 

      Storage and relative

    • D. 

      All the above

  • 3. 
    How many bytes is 1K Byte ?
    • A. 

      1000

    • B. 

      1024

    • C. 

      512

    • D. 

      256

  • 4. 
    What is computer
    • A. 

      Nesto sto radi

    • B. 

      Zabaviliste

    • C. 

      Igrica

    • D. 

      Masina

    • E. 

      Tv

  • 5. 
    Computer understand only binary language
    • A. 

      True

    • B. 

      False

  • 6. 
    What is the extension of computer applications?
    • A. 

      Mp3

    • B. 

      Exe

    • C. 

      Jar

    • D. 

      Jpg

  • 7. 
    What is called the brain of computer
  • 8. 
    What is the full form of VIRUS
    • A. 

      Vital information resource under siege

    • B. 

      Vital information reference under sequence

    • C. 

      Virus introduction resource under sex

    • D. 

      Virtual intrology reformer under sense

  • 9. 
    CPU is known as 
    • A. 

      Software

    • B. 

      Operating System

    • C. 

      Main Processing Unit

    • D. 

      Input Device

  • 10. 
    Window is Known as 
    • A. 

      Software

    • B. 

      Operating System

    • C. 

      Main Processing Unit

    • D. 

      Input Device

  • 11. 
    Interpreter is known as 
    • A. 

      Language Translator

    • B. 

      Assembler

    • C. 

      Firewall

    • D. 

      Hardware

  • 12. 
    What is the output from                                int n = 12;       System.out.print(goFigure(n));       System.out.print(" " + n); where the method goFigure is defined as follows:            public double goFigure(int n)       {          n = n % 7;           return (double)(12 / n);        } [Not seen before]
    • A. 

      2.4 12

    • B. 

      2.4 6

    • C. 

      2.4 5

    • D. 

      2.0 12

    • E. 

      2.0 5

  • 13. 
    Which statement best describes a computer program? 
    • A. 

      A program can only perform one simple task.

    • B. 

      A program is a sequence of comments.

    • C. 

      A program can decide what task it is to perform.

    • D. 

      A program is a sequence of instructions and decisions that the computer carries out.

  • 14. 
    What translates high-level descriptions into machine code? 
    • A. 

      Interpreter

    • B. 

      Linker

    • C. 

      Assembler

    • D. 

      Compiler

  • 15. 
    In Ch, every statement must end with this symbol. 
    • A. 

      ;

    • B. 

      )

    • C. 

      -

    • D. 

      !

  • 16. 
    What term is used to refer to a sequence of characters enclosed in quotation marks? 
    • A. 

      Comment

    • B. 

      String

    • C. 

      Method

    • D. 

      Object

  • 17. 
    What is a term used to describe an error detected by the compiler that is a violation of the programming language rules? 
    • A. 

      Logic error

    • B. 

      Typo

    • C. 

      Syntax error

    • D. 

      Run-time error

  • 18. 
    What term is used to refer to a sequence of steps for solving a problem that is unambiguous, executable, and terminating? 
    • A. 

      Documentation

    • B. 

      Comments

    • C. 

      Pseudoprogram

    • D. 

      Algorithm

  • 19. 
    Which statement about identifiers is correct? 
    • A. 

      Spaces are permitted inside identifiers.

    • B. 

      Identifiers are not case sensitive.

    • C. 

      Identifiers can be made up of letters, digits, and the underscore (_) character.

    • D. 

      Identifiers can use symbols such as ? or %.

  • 20. 
    What is the result of a % b when variables a and b are declared as follows: int a = 9; int b = 5;? 
    • A. 

      1.80

    • B. 

      4

    • C. 

      -80

    • D. 

      1

  • 21. 
    The input to a function is called an _______________. 
    • A. 

      Argument

    • B. 

      Interface

    • C. 

      Procedure

    • D. 

      Overloaded

  • 22. 
    The output of a method is called its __________ value. 
    • A. 

      Parameter

    • B. 

      Return

    • C. 

      Implicit

    • D. 

      Explicit

  • 23. 
    What is the output of the following program segment?   int num = 5;   while (num >= 0)   {         num -= 2;    }   printf("%d", num); 
    • A. 

      -2

    • B. 

      -1

    • C. 

      0

    • D. 

      2

    • E. 

      21

  • 24. 
    Which statement best describes a computer program? 
    • A. 

      A program can only perform one simple task.

    • B. 

      A program is a sequence of comments.

    • C. 

      A program can decide what task it is to perform.

    • D. 

      A program is a sequence of instructions and decisions that the computer carries out.

  • 25. 
    What translates high-level descriptions into machine code?
    • A. 

      Interpreter

    • B. 

      Linker

    • C. 

      Assembler

    • D. 

      Compiler