Computer Science Quiz #2

5 Questions | Attempts: 128
Share

SettingsSettingsSettings
Computer Science Quizzes & Trivia

Algorithm made me Cool. . .


Questions and Answers
  • 1. 

    Is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. Note though that unlike most languages, Fortran's do loop is actually analogous to the for loop.Example :do { statements;} while (condition);

    • A.

      Looping

    • B.

      While Loop

    • C.

      For Looping

    • D.

      Do while Loop

    • E.

      While Do Loop

    Correct Answer
    D. Do while Loop
  • 2. 

    What kind of loop on this structures:x = 0;while (x < 3){ printf("x = %d\n",x); x++;}

    • A.

      While Loop

    • B.

      Looping

    • C.

      Loop While

    • D.

      Do while Loop

    • E.

      For Loop

    Correct Answer
    A. While Loop
  • 3. 

    Is a programming language statement which allows code to be repeatedly executed.

    • A.

      Loop

    • B.

      Do Loop

    • C.

      While Loop

    • D.

      Looping

    • E.

      For Loop

    Correct Answer
    E. For Loop
  • 4. 

    Is a data structure consisting of a collection of elements (values or variables), each identified by one or more integer indices, stored so that the address of each element can be computed from its index tuple by a simple mathematical formula

    • A.

      Loop

    • B.

      Array

    • C.

      Binary Search

    • D.

      One-dimensional array

    • E.

      Sorting

    Correct Answer
    B. Array
  • 5. 

    Is a technique for locating a particular value in a sorted list.

    • A.

      Sorting

    • B.

      Do Loop

    • C.

      One-dimensional array

    • D.

      Array

    • E.

      Binary Search

    Correct Answer
    E. Binary Search

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 03, 2009
    Quiz Created by
    Jopet
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.