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
44 questions
Round 1 Code2duo

Quiz
•
University
50 questions
FINAL TEST FOR JAVA PROGRAMMING 2

Quiz
•
University
49 questions
TSW II intercorso

Quiz
•
University
50 questions
DSA - Infosys Power Programmer

Quiz
•
University
48 questions
Python Programming

Quiz
•
University
50 questions
Java Array Questions

Quiz
•
University
51 questions
Java Quiz

Quiz
•
University
50 questions
Technical Quiz 2022-23

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University