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