Test 2

Test 2

University

•

49 Qs

quiz-placeholder

Similar activities

AKT test (251-300)   Жаңа вариант

AKT test (251-300) Жаңа вариант

University

•

50 Qs

Ôn tập mos 11

Ôn tập mos 11

University

•

50 Qs

Data Structures Quiz

Data Structures Quiz

University

•

44 Qs

PF201: SCCPF2012223

PF201: SCCPF2012223

University

•

50 Qs

Data Structures

Data Structures

University

•

50 Qs

Sec-D  Javascript-1

Sec-D Javascript-1

12th Grade - University

•

52 Qs

Cuestionario Pseudocodigo

Cuestionario Pseudocodigo

University

•

50 Qs

PHP sisfo

PHP sisfo

10th Grade - University

•

53 Qs

Test 2

Test 2

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Easy

Created by

Gabe Vandzura

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?