FontysVenlo - PRC1 - W03

FontysVenlo - PRC1 - W03

1st - 3rd Grade

12 Qs

quiz-placeholder

Similar activities

Yr 7 Flowgorithm

Yr 7 Flowgorithm

3rd Grade

10 Qs

C# 11

C# 11

1st - 10th Grade

10 Qs

CodeHS Arraylist

CodeHS Arraylist

1st Grade

10 Qs

ARRAY IN C++

ARRAY IN C++

3rd - 5th Grade

15 Qs

Тест №1

Тест №1

1st Grade

15 Qs

Dojo - Type Inference

Dojo - Type Inference

1st - 12th Grade

13 Qs

JAVA-STRINGS-VLITS

JAVA-STRINGS-VLITS

1st Grade

13 Qs

Mapel Pilihan Pemrograman

Mapel Pilihan Pemrograman

2nd Grade

13 Qs

FontysVenlo - PRC1 - W03

FontysVenlo - PRC1 - W03

Assessment

Quiz

Education, Computers

1st - 3rd Grade

Hard

Created by

Frank van Gennip

Used 4+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which usage of a Scanner for reading input is correct?

Scanner input = new Scanner('System.in');

Scanner input = new Scanner( nextLine());

Scanner input = new Scanner("first line!\nsecond line!");

Scanner input = new Scanner();

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement regarding the DEBUGGER is NOT correct?

The debugger can be used to execute a program step-by-step

Using the debugger, you can "Step INTO" methods.

In using the debugger, you typically set BREAKPOINTS

Experienced programmers don't need a debugger

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does the following operator mean? Operator: ||

NOT EQUAL TO

LOGICAL AND

LOGICAL OR

CONCATENATE

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement regarding an ARRAY is NOT correct?

An array is a fixed size data structure

The "size" is retrieved using <arrayName>.size()

The first element in an array is on index 0

An array can be processed using a for-each loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement regarding the ArrayList datatype is NOT correct?

An element in an ArrayList can be accessed using the <name>[index] notation (e.g. namesList[4])

An ArrayList is a dynamic wrapper around an array

ArrayList objects are resized automatically when necessary

ArrayLists can only contain a ReferenceType (e.g. ArrayList<String>)

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement is correct?

The value 3 can't be stored in an ArrayList

An Integer value can not be stored in an Array

Integer is a wrapper type around the primitive int data type

When you want to assign value 3 to a variable of type Integer, you have to do manual "boxing"

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be printed out on the Console if you run the following code (see picture) ?

true true false false

false false true true

true false true false

false true false true

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?