Terry E Snyder Jr
&  
RemoteWebs.com  

Computer & Web Solutions

Support, Design, and more...
| | |
April 20th, 2024 4:49:52 AM

QBASIC Test #2

  1. Which is the proper command to create an area of and array?
    1. ARRAY
    2. CARRAY
    3. DIM
    4. DIMARRAY
    5. MAKEARRAY
  2. Which is the proper line of code to access the 5th element of an array declared with a DIM of (10)?
    1. Scores(5)
    2. Scores(i)
    3. Scores(4)
    4. Scores(five)
    5. Scores(four)
  3. In QBASIC what happens when an array is passed into a Subroutine or a Function?
    1. The array is copied.
    2. The array is passed into the Subroutine as a value but is copied in a Function.
    3. That array is passed into the Function as a value but is copied into a Subroutine.
    4. The array is passed into Both Functions and Subroutines as values.
    5. None of the Above.
  4. Which is the first line of a Subroutine if the name of the subroutine�s name is CalcMe, with no variables passed into the Subroutine.
    1. Subroutine CalcMe();
    2. Procedure CalcMe();
    3. Sub CalcMe()
    4. Sub CalcMe();
    5. CalcMe() Subroutine
  5. Which is the first line of a Function if the name of the Function is Avg, with an array of Nums with a size of ten passed into the Function?
    1. Avg(Nums[]){
    2. Function Avg(Val Nums): Integer
    3. Function Avg(Nums());
    4. Function Avg(Nums())
    5. None of the above.
  6. If you are going to use the READ statement you must also have a _________ Statement in your program.
    1. INFO
    2. INPUT
    3. DATA
    4. VALUES
    5. None of the above.
  7. What is the Maximum size of an array?
    1. 65,535 (64K)
    2. No limit
    3. 32,767
    4. 2,147,483,648
    5. 4,294,967,296
  8. What is the maximum number of arguments that can be passed into a Subroutine?
    1. 5
    2. 10
    3. 65,535
    4. 60
    5. 2,147,483,647
  9. What is the total file size a QBASIC can make?
    1. 64KB
    2. 128KB
    3. 1MB
    4. 10MB
    5. Available disk space.
Google
 
Web www.terryesnyderjr.com
www.remotewebs.com

Page Updated on August 23, 2020 22:47

www.terryesnyderjr.com Copyright 2000-2024©