Quiz: Take The Computer Science Practice Exam Questions!

50 Questions

Settings
Please wait...
Quiz: Take The Computer Science Practice Exam Questions!

.


Questions and Answers
  • 1. 
    It translates input into output.
    • A. 

      Function of a web document

    • B. 

      Function of a computer program

    • C. 

      Function of code

    • D. 

      Function of Ruby

  • 2. 
    Computer __________________is a complex subject, but it can be broken down into three basic processes. First, data is converted to simple numbers that are easy for a computer to store. Second, the numbers are recorded by hardware inside the computer. Third, the numbers are organized, moved to temporary storage and manipulated by programs, or software.
    • A. 

      Coding

    • B. 

      Science

    • C. 

      Programming

    • D. 

      Data storage

  • 3. 
    Which one is NOT a main part of the computer
    • A. 

      Power supply

    • B. 

      Motherboard

    • C. 

      Keyboard

    • D. 

      CPU

  • 4. 
    ______can take a variety of forms, from commands you enter from the keyboard to data from another computer or device. A device that feeds data into a computer, such as a keyboard or mouse, is called an input device. (v.)The act of entering data into a computer.
    • A. 

      Input

    • B. 

      Process

    • C. 

      Output

    • D. 

      Techniques

  • 5. 
    A ________________ is a visual representation of a direction of data in a program
    • A. 

      Hierarchy chart

    • B. 

      Diagram

    • C. 

      Linear chart

    • D. 

      Flowchart

  • 6. 
    In computer programming, a ___________variable is a variable with large scope, meaning that it is visible (hence accessible) throughout the program, unless shadowed. 
    • A. 

      Local

    • B. 

      Global

    • C. 

      Constant

    • D. 

      Psuedo

  • 7. 
    Which one is NOT a programming language?
    • A. 

      PHP

    • B. 

      Goose

    • C. 

      C++

    • D. 

      Java

  • 8. 
    In software, a _____________is a part of a program. Programs are composed of one or more independently developed ______________that are not combined until the program is linked. A single ____________can contain one or several routines. (2) In hardware, a ___________is a self-contained component.
    • A. 

      Module

    • B. 

      Unit

    • C. 

      Device

    • D. 

      Variable

  • 9. 
    A ________________ is traditionally a sequence of characters or variables or what a kite is tied to.
    • A. 

      Yarn

    • B. 

      String

    • C. 

      Rope

    • D. 

      Hand

  • 10. 
    ________________and bottom-up are both strategies of information processing and knowledge ordering
    • A. 

      Hierarchy order

    • B. 

      Stacking order

    • C. 

      Top down

    • D. 

      Trickle down

  • 11. 
    A __________________ is a collection of instructions that performs a specific task when executed by a computer
    • A. 

      Module

    • B. 

      Coding sequence

    • C. 

      Program

    • D. 

      Top down approach

  • 12. 
    The ______________________ statement provides a secondary path of execution when an "if" clause evaluates to false. 
    • A. 

      If then else

    • B. 

      If then

    • C. 

      And

    • D. 

      Not

  • 13. 
    It translates input into output.
    • A. 

      A computer

    • B. 

      A computer program

    • C. 

      A program

    • D. 

      A CPU

  • 14. 
    _____________________________ are independent items, or variables, that contain data or codes
    • A. 

      Sequences

    • B. 

      Statements

    • C. 

      Processes

    • D. 

      Arguments

  • 15. 
    A _______________________is a programmer-readable explanation or annotation in the source code of a computer program
    • A. 

      Question

    • B. 

      Communicator

    • C. 

      Comment

    • D. 

      Doctype

  • 16. 
    Which is NOT examples of programming operators
    • A. 

      AND

    • B. 

      BUT

    • C. 

      NOT

    • D. 

      OR

  • 17. 
    A  ________________is a value that never changes
    • A. 

      Constant

    • B. 

      Variable

    • C. 

      Adjustable variable

    • D. 

      Plausible constant

  • 18. 
    In ____________________programming different computations or actions are programmed depending on whether a programmer-specified boolean condition evaluates to true or false.
    • A. 

      If then else

    • B. 

      If then but NOT

    • C. 

      If then

    • D. 

      None of the above

  • 19. 
    _______________________is a data type, having two values (usually denoted true and false), intended to represent the truth values of logic
    • A. 

      Boolean

    • B. 

      Module

    • C. 

      Constant

    • D. 

      Variable

  • 20. 
    The ____________is the part of the computer that runs programs
    • A. 

      Input

    • B. 

      Keyboard

    • C. 

      User

    • D. 

      CPU

  • 21. 
    A __________ ______ array is a search of a sorted array by repeatedly dividing the search interval in half.
    • A. 

      Selection search

    • B. 

      Control search

    • C. 

      Binary search

    • D. 

      Integer search

  • 22. 
    If you were to be in charge of sorting scores on a Pre-Calculus exam you would be creating an ____________ number array.
    • A. 

      Integer

    • B. 

      Whole number

    • C. 

      Variable

    • D. 

      Selection

  • 23. 
    Computers process every single thing, so if ___________ goes in it will come out
    • A. 

      Code

    • B. 

      Language

    • C. 

      Garbage

    • D. 

      Programming

  • 24. 
    Used when a program needs to _______________ a process of one or more instructions until some condition is met.
    • A. 

      Loop

    • B. 

      Repeat

    • C. 

      Construct

    • D. 

      While

  • 25. 
    Any search you do online for a product or apparel that you want to buy will allow you to _________ your results by Price Low to High, Price High to Low, Best Seller, etc.
    • A. 

      Randomize

    • B. 

      List

    • C. 

      Scramble

    • D. 

      Sort

  • 26. 
    The _______ ________ loops are used with arrays to sort data out.
    • A. 

      For Each

    • B. 

      Do While

    • C. 

      Repeat Until

    • D. 

      For While

  • 27. 
    The __________ loop sequence of instructions is one that is continually repeated until a certain condition is reached.
    • A. 

      For

    • B. 

      If then

    • C. 

      For each

    • D. 

      While

  • 28. 
    ____________ is repetition in coding
    • A. 

      Accessibility

    • B. 

      Iteration

    • C. 

      Integrity

    • D. 

      Compotency

  • 29. 
    ______________ is an Automatic check to make sure data entered is sensible and reasonable. 
    • A. 

      Grading

    • B. 

      Assessment

    • C. 

      Checking

    • D. 

      Validation

  • 30. 
    If you created a program that listed the names of students in a class in alphabetical order the order would be listed in __________________ order
    • A. 

      Descending

    • B. 

      Ascending

    • C. 

      Scrambled

    • D. 

      Random

  • 31. 
    ____________ is a sorting algorithm that compares each adjacent number and swaps them until all of the numbers in the list are in order 
    • A. 

      Swapping

    • B. 

      Inverse

    • C. 

      Bubble

    • D. 

      Random

  • 32. 
    A ______________ is a special value in the context of an algorithm.
    • A. 

      Sentinel

    • B. 

      Construct

    • C. 

      Component

    • D. 

      Character

  • 33. 
    The ______________ statement causes execution to leave the current subroutine and resume at the point in the code immediately after where the subroutine was called.
    • A. 

      Comeback

    • B. 

      Switchback

    • C. 

      Return

    • D. 

      Flashback

  • 34. 
    A _____________ order are numbers or variables displayed in a decreasing fashion.
    • A. 

      Ascending

    • B. 

      Low to high

    • C. 

      High to low

    • D. 

      Descending

  • 35. 
    A _______________ function produced an integer between 0 and whatever.
    • A. 

      Scattered

    • B. 

      Incomplete

    • C. 

      Random

    • D. 

      Spontaneous

  • 36. 
    A _____________ loop is a loop within the loop
    • A. 

      Partnered

    • B. 

      Bridged

    • C. 

      Nested

    • D. 

      Integrated

  • 37. 
    _______________  are things that put numbers together or statements together. Such as *, /, +, -, %.
    • A. 

      Connectors

    • B. 

      Characters

    • C. 

      Symbols

    • D. 

      Operators

  • 38. 
    A __________________ sort is a sorting algorithm, specifically an in-place comparison sort.
    • A. 

      Selection

    • B. 

      Linear

    • C. 

      Repetition

    • D. 

      Random

  • 39. 
    A ___________ provides a computer with a specific set of instructions to perform a task.
    • A. 

      Exe

    • B. 

      Program

    • C. 

      Instruction

    • D. 

      Command

  • 40. 
    ___________________are notes made as reminders, instructions, etc. for a programmer that helps explains commands and instructions in code.
    • A. 

      Quotations

    • B. 

      Connotations

    • C. 

      Keys

    • D. 

      Comments

  • 41. 
    What are all the elements in an HTML document called?
    • A. 

      Elements

    • B. 

      Attributes

    • C. 

      Tags

    • D. 

      Attribute Values

  • 42. 
    What is the tag element for an internal css code?
    • A. 

      Style

    • B. 

      Css

    • C. 

      Link

    • D. 

      Icss

  • 43. 
    Which one is NOT a term describing sections of CSS code?
    • A. 

      Selectors

    • B. 

      Declarations

    • C. 

      Values

    • D. 

      Headers

  • 44. 
    Which one below was NOT the name of a function that should have been used with Karel?
    • A. 

      IsFrontClear

    • B. 

      RotateUp

    • C. 

      Start

    • D. 

      StackPancakes

  • 45. 
    To __________ a function is to put it use.
    • A. 

      Call

    • B. 

      Code

    • C. 

      Write

    • D. 

      Define

  • 46. 
    Why do we use functions in programming?
    • A. 

      Break down our programming into smaller parts

    • B. 

      Makes programs more readable

    • C. 

      Avoid repeating code

    • D. 

      All answers are correct

  • 47. 
    An endless _____ is a continuous repetition of a program segment.
    • A. 

      Journey

    • B. 

      Condition

    • C. 

      Circumstance

    • D. 

      Loop

  • 48. 
    Which one describes an error in a program that prevents if from running accordingly?
    • A. 

      Fallacy

    • B. 

      Bug

    • C. 

      Problem

    • D. 

      Glitch

  • 49. 
    Doing something on the internet to make another personal feel angry, sad, or scared.
    • A. 

      Criminal

    • B. 

      Cyberbully

    • C. 

      Uh...you're a jerk

    • D. 

      Creep

  • 50. 
    Things written in code for notes for the programmer that are not visible in a browser.
    • A. 

      Instructions

    • B. 

      Commands

    • C. 

      Comments

    • D. 

      Code