Practice Problems for Computers - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Practice Problems for Computers

Description:

8. Data are collected at the rate of 14.4 kbps and spooled to diskette. How long will it take to fill a diskette having a usable capacity of 1.44 MB? (A) 1.7 min ... – PowerPoint PPT presentation

Number of Views:96
Avg rating:3.0/5.0
Slides: 12
Provided by: xing3
Category:

less

Transcript and Presenter's Notes

Title: Practice Problems for Computers


1
Practice Problems for Computers
  • CVEN 4301-17
  • CVEN 5301-17
  • TSTP 1040

2
  • 1. Which of the following are true statements
    regarding user-defined functions in a general
    programming language?
  • I. A function is more versatile than a
    subroutine, as it is not limited to mathematical
    calculations.
  • II. A function is defined as a variable in the
    main program.
  • III. A function may be used repeatedly, anywhere
    in the program.
  • A. I only
  • B. I and II
  • C. I and III
  • D. II and III

3
  • 2. Which of the following statements is FALSE
    regarding FORTRAN programming?
  • (A) No FORMAT statement is required with
    unformatted READ or WRITE statements.
  • (B) An arithmetic IF statement can only be used
    to evaluate an arithmetic statement.
  • (C) More than one STOP statement is permitted in
    a program.
  • (D) FORMAT is not an executable statement.

4
  • 3. Logical statements X and Y are FALSE, and Z is
    TRUE. Which of the following logical
  • expressions is TRUE?
  • (A) .NOT.Z.AND.X
  • (B) Y.AND.Z.OR.X
  • (C) .NOT.(X.AND.Y)
  • (D) .NOT.X.OR.NOT.Z

5
  • 4. Y(I) represents values in an array indexed to
    the integer variable I.
  • I Y(I)
  • 1 90
  • 2 -20
  • 3 410
  • 4 70
  • 5 17
  • When B 2, the value of Y(B2) is equal to
  • (A) -18
  • (B) 17
  • (C) 70
  • (D) 90

6
  • 5. Before being executed, computer programs are
    loaded into memory. The memory storage
    component to which this refers is
  • (A) cache
  • (B) RAM
  • (C) ROM
  • (D) EPROM

7
  • 6. Consider the following generic code program.
  • 10 N 0
  • 15 GO TO 50
  • 20 FOR X -1 TO 7
  • 25 N 6
  • 30 FOR Y 3 TO 6
  • 35 N XY16
  • 40 NEXT Y
  • 45 NEXT X
  • 50 PRINT N
  • 55 END
  • After completion, the value assigned to N is
  • (A) -356
  • (B) 0
  • (C) 98
  • (D) 1021

8
  • 7. What is the binary (base-2) number that is
    equivalent to the decimal (base-10) number 129?
  • (A) 10000001
  • (B) 10101001
  • (C) 10011111
  • (D) 11110001

9
  • 8. Data are collected at the rate of 14.4 kbps
    and spooled to diskette. How long will it take to
    fill a diskette having a usable capacity of 1.44
    MB?
  • (A) 1.7 min
  • (B) 10 min
  • (C) 13 min
  • (D) 14 min

10
  • 9. The sensitivity of a feedback loop (system) is
    defined as the ratio of the
  • (A) forward transfer function to the reverse
    transfer function
  • (B) percentage change in the loop transfer
    function to percentage change in the forward
    transfer function
  • (C) output signal to the input signal
  • (D) change in the forward transfer function to
    the percentage change in the loop transfer
    function

11
  • 10. What is the decimal (base-10) number
    equivalent to the binary (base-2) number
    101101110?
  • (A) 175
  • (B) 255
  • (C) 309
  • (D) 366
Write a Comment
User Comments (0)
About PowerShow.com