IP MIDTERM

IP MIDTERM

University

45 Qs

quiz-placeholder

Similar activities

IT Fundamentals Test Part 1

IT Fundamentals Test Part 1

KG - University

49 Qs

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

HTML Y CSS

HTML Y CSS

University

50 Qs

HTML CSS

HTML CSS

University

40 Qs

Remidi ASTS Informatika

Remidi ASTS Informatika

7th Grade - University

40 Qs

CAD ASSESSMENT PART 1

CAD ASSESSMENT PART 1

University

45 Qs

EPA-11-DEC-2021 On Java

EPA-11-DEC-2021 On Java

University

50 Qs

Blockchain

Blockchain

University

40 Qs

IP MIDTERM

IP MIDTERM

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Danny Casimero

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

An array is a list of data items that __________.

all have the same type
all have different names
all are integers
all are null

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following can be used as an array subscript?

character
double
int
String

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Assume an array is declared as follows. Which of the following statements correctly assigns the value 100 to each of the array elements? int[] num = new int[4];

for(x=0; x<3; ++x) num[x] = 100;
for(x=0; x<4; ++x) num[x] = 100;
for(x=1; x<4; ++x) num[x] = 100;
for(x=1; x<3; ++x) num[x] = 100;

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Suppose you declare an array as follows: int[] creditScores = {670,720,815} What is the value of creditScores.lenght?

0
1.0
2.0
3.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

If a class named Student contains a method setID() that takes an int argument and you write an application in which you create an array of 20 Student objects named scholar. Which of the following statements correctly assigns an ID number to the first Student scholar?

Student[0].setID(1234);
scholar[0].setID(1234);
Student.setID[0].(1234);
scholar.setID[0](1234);

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The following defines a ____ array. Int[][] nums = {{1,2} ,{3,4},{5,6}};

one dimensional
two dimensional
three dimensional
six dimensional

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How many rows are contained in the following array? double [][] prices = {{2.56, 3.57, 4.58, 5.59}, {12.35, 13.35, 14.35, 15.00}};

1.0
2.0
4.0
8.0

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?