CS 3 Midterm 2023

CS 3 Midterm 2023

12th Grade

33 Qs

quiz-placeholder

Similar activities

Leigha Sindel 2

Leigha Sindel 2

9th - 12th Grade

29 Qs

Specialized Network

Specialized Network

9th - 12th Grade

29 Qs

RPL-Web-02 (Web)

RPL-Web-02 (Web)

12th Grade - University

35 Qs

BLENDER INTRO_2

BLENDER INTRO_2

9th - 12th Grade

29 Qs

Set 3

Set 3

12th Grade - University

30 Qs

Ôn tập kiểm tra 15 phút môn tin lần 1 kỳ 2 khối 10 MĐ

Ôn tập kiểm tra 15 phút môn tin lần 1 kỳ 2 khối 10 MĐ

9th - 12th Grade

29 Qs

Karnaugh Map k-map

Karnaugh Map k-map

12th Grade

28 Qs

Exam Revision 3

Exam Revision 3

12th Grade

29 Qs

CS 3 Midterm 2023

CS 3 Midterm 2023

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Danielle Mills

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

33 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

What is the output?

[two, five]

[two, four]

[two, three]

[four, five]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is a correct declaration and initialization of an ArrayList of String values?

ArrayList <String> name;

name = new ArrayList<String>();

String name; name = new String<ArrayList>();

ArrayList <String> name; name = ArrayList<String>();

ArrayList name; name = new ArrayList<String>();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the nums ArrayList with the values [5, 4, 3, 2], what statement below removes the value 3 from the list?

nums.remove(1)

nums.get(2) = null

nums.remove(2)

nums.remove(3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the ArrayList nums with the values [3, 7, 6, 0], what code below is the proper way to change the 7 to be a 5?

nums.set(7, 5)

nums.set(7, 5)

nums[2] = 5

nums.set(1, 5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What index value is used to locate the last element in the nums ArrayList?

nums.length

nums.size()-1

nums.size()

nums.length()-1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ArrayList class ____ method returns the current ArrayList size.

length

size

capacity

rows

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

15

5

9

11

7

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?