Computer Science Department

The University of Western Ontario

CS1025/CS1026 Self Placement Guide

Quiz


Instructions

 

Click the answer button to see the correct answer.

  1. Java, C, and Pascal are
    1. web browsers
    2. editors
    3. notations used by web browsers
    4. programming languages
    5. I'm not sure
    6. I don’t know


  1. Hypertext markup language (html) is a
    1. programming language
    2. program
    3. web browser
    4. notation used by web browsers
    5. I’m not sure
    6. I don’t know


  1. Syntax errors are identified by
    1. web browsers
    2. editors
    3. compilers
    4. debuggers
    5. I’m not sure
    6. I don't know


  1. Syntax errors are corrected by the
    1. web browser
    2. programmer
    3. editor
    4. compiler
    5. I’m not sure
    6. I don’t know


  1. If a program is syntactically correct, it will run correctly, that is, there will be no errors of any kind.
    1. true
    2. false
    3. not necessarily
    4. I’m not sure
    5. I don’t know


  1. Logic errors are encountered at
    1. compile time 
    2. run time
    3. I’m not sure
    4. I don’t know


  1. A variable is
    1. a named location on a disk
    2. a named location on a web site
    3. an address that may change
    4. a named location in a computer's memory
    5. I’m not sure
    6. I don’t know


  1. A variable has
    1. an internet address
    2. a variable number of characteristics
    3. an identifier and contents
    4. a web page
    5. I’m not sure
    6. I don’t know


  1. In most structured programming languages, when a variable is declared, the programmer must supply
    1. a name and a type
    2. only a type
    3. only a name
    4. I'm not sure
    5. I don’t know


  1. A programmer wishes to compare two values. Which type of statement, most likely, would be used?
    1. a conditional (aka selection) statement
    2. an assignment statement
    3. a module
    4. a loop
    5. I’m not sure
    6. I don’t know


  1. A loop is used by a programmer to
    1. visit a web page for a second time
    2. repeat the execution of a sequence of statements
    3. loops are not used by programmers
    4. execute exactly one of several possible statements
    5. I’m not sure
    6. I don’t know


  1. Pseudo code is a
    1. programming language independent notation
    2. notation used by web browsers
    3. programming language
    4. I’m not sure
    5. I don’t know


  1. An if statement involves the evaluation of an expression resulting in
    1. one
    2. zero
    3. a true or a false value
    4. I'm not sure
    5. I don't know


  1. A program is modular if each logical task of the program is implemented by a
    1. sentence
    2. statement
    3. module
    4. web page
    5. I’m not sure
    6. I don’t know


  1. Parameters (aka arguments) are used to
    1. identify web pages
    2. communicate with modules
    3. control execution of loops
    4. define entry points
    5. I'm not sure
    6. I don’t know