Test 2

Quiz
•
Computers
•
University
•
Easy
Gabe Vandzura
Used 8+ times
FREE Resource
49 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this a valid array definition?
int table[5] = {2,45};
T
F
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When an array name is used without brackets and subscript, it is seen as the value of the first element in the array.
T
F
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Array - tableA
5 9 11 2 1 4
Array - tableB
5 9 11 2 1 4
If (tableA == tableB)
cout <<"Both arrays are identical";
Will the above if statement display - "Both arrays are identical"?
T
F
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int item[5] = {2, 4, 6, 8, 10};
int *itemPtr = item + 1; <==== Is this valid?
T
F
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int score[5]= {60, 70, 80, 90, 100};
int tempScore[5];
The statement below will copy all the items in the array score into the array tempScore.
tempScore = score;
T
F
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int score[3] = {60, 70, 80};
Using the above declaration, the cout statement below will display all the items in the array score.
cout << score ;
T
F
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming teamScore is an array of int values and count is an int variable, both the following statements will do the same action.
1. cout << teamScore[count] << endl;
2. cout << *(teamScore + count) << endl;
T
F
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
HTML

Quiz
•
8th Grade - University
51 questions
lập trình C4

Quiz
•
University
50 questions
SAINS KOMPUTER TINGKATAN 4 BAB 1

Quiz
•
3rd Grade - University
45 questions
TRY OUT MID KLS 8 SEM GENAP

Quiz
•
8th Grade - University
50 questions
Web Designing-2025

Quiz
•
University
47 questions
12a7

Quiz
•
12th Grade - University
45 questions
IP MIDTERM

Quiz
•
University
51 questions
data struk 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University