35 questions
Which is usually the first element of an array?
0
1
10
4
In QBasic what data type is this “Month = 7“?
Integer
String
Array
Boolean
Which one is not an operator?
+
/
%
25
Which one is a polynomial?
12 % 3
5x - 3
7
In QBasic what data type does this define “ word = “ Happy” ?
Integer
String
Array
Boolean
Which statement is correct?
Array[4] = { "Apple" , "Fish", "Pear"};
@nswer = "Sam";
answer$ = “question” + 5;
area = “base” * height;
What does the CLS command do?
Create a list
Clear screen
Call link server
Camera lens sync
Which one is an exponential?
12 % 3
5x - 3
7
Array[4] What does the 4 represent?
How many arrays there are
How many numbers there are
How many letters there are
How many values there are
What data structures hold a value of true or false?
Integer
String
Array
Boolean
What kind of values can be put in an Array?
Numbers
Words
Variables
All of these
What is a heuristic technique?
An algorithm
data type
An advance way of writing algorithms
An adaptable and practical method of problem solving
Which method of search starts from one end and goes to the other end, one by one?
Binary search
Linear Search
Exponential search
Google search
Which statement is incorrect?
Array[4] = { 0, "One" , "Two", "Three"};
Answer$ = "Sam";
word$ = “question";
area = base * height;
Which method of search starts in the center and eliminates numbers based on their numerical values?
Binary search
Linear Search
Exponential search
Google search
Which data structure can hold multiple values at one time?
Integer
String
Array
Boolean
Which one is a polynomial?
12 % 3
5x - 3
10x
7
Which declaration for an array is correct?
animal[3 ]= {5,7,8};
animal[10];
animal[];
All of them
Which declaration for a variable is wrong?
cat = 5;
wordnbsp; = “animal”;
a = 100;
#days = 100;
How many variables does this array hold? Animals[3];
0
1
2
3
What command do we use to receive input from the user?
for
if
input
What best explains the word coordinates?
Size
Location
Volume
Value
Array[4] = { "Justin", "Jennifer" , "Jane", "June"} In this array what number is Jennifer?
0
1
2
3
Array[4] = { "Justin", "Jennifer" , "Jane", "June"}
In this array what number is Justin?
0
1
2
3
Month[4] = { "Justin", "Jennifer" , "Jane", "June"} In this array which one references June?
Month[1]
Month[2]
Month[3]
Month[4]
What data structure never changes during a program?
Integer
String
Constant
Boolean
Which of these operators will return the remainder?
+
/
%
25
Which variable represents vertical movement or position?
X
Y
Z
None of them
What command do we use to give output to the user?
for
if
input
What is the first element checked in a binary search?
The first one
The second one
The middle one
The last one
What is a binary search?
A search that starts at one end and checks one by one
A search that starts from the middle and eliminates impossible answers
A search on your computer for a lost file or device
A google search
What is a linear search?
A search that starts at one end and checks one by one
A search that starts from the middle and eliminates impossible answers
A search on your computer for a lost file or device
A google search
Which type of algorithm grows fastest?
Polynomial
Quadratic
Exponential
Geometric
Write a short program that prints the word “finished” if x is less than 5
Write a program that tells how many hours are in one week.____________