Is this a valid array definition?
int table[5] = {2,45};
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
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
DSA - Infosys Power Programmer

Quiz
•
University
50 questions
Technical Quiz 2022-23

Quiz
•
University
44 questions
Round 1 Code2duo

Quiz
•
University
50 questions
FINAL TEST FOR JAVA PROGRAMMING 2

Quiz
•
University
50 questions
Quiz Trivia

Quiz
•
University
50 questions
TARANG 2023 Technical Quiz

Quiz
•
University
51 questions
C Programming Quiz

Quiz
•
University
49 questions
TSW II intercorso

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade