AP Computer Science A Unit 6 Lesson 1 (Introduction)

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Herman Galioulline
Used 34+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code segment.
int[] arr = {1, 2, 3, 4, 5};
Which of the following code segments would correctly set the first two elements of array arr to 10 so that the new value of array arr will be {10, 10, 3, 4, 5} ?
arr[0] = 10;
arr[1] = 10;
arr[1] = 10;
arr[2] = 10;
arr[0, 1] = 10;
arr[1, 2] = 10;
arr = 10, 10, 3, 4, 5;
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
I only
II only
III only
I and II
I and III
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
int arr = {40, 30, 20, 10, 0};
System.out.println(getValue(arr, 1, 2));
int[] arr = {40, 30, 20, 10, 0};
System.out.println(getValue(arr, 1, 2));
int[] arr = {50, 40, 30, 20, 10};
System.out.println(getValue(arr, 1, 2));
int arr = {40, 30, 20, 10, 0};
System.out.println(getValue(arr, 2, 1));
int arr = {50, 40, 30, 20, 10};
System.out.println(getValue(arr, 2, 1));
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
int[] myArray = new int[4];
changeIt(myArray, 1, 5);
int[] myArray = new int[4];
changeIt(myArray, 2, 5);
int[] myArray = new int[4];
changeIt(myArray, 5, 1);
int[] myArray = new int[5];
changeIt(myArray, 1, 4);
int[] myArray = new int[5];
changeIt(myArray, 1, 5);
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int[] array1 = {5, 2, 8, 6, 4, 3, 9};
int[] array2 = addNum(array1, 2, 4, 5);
int[] array1 = {-5, -5, 13, 0, 9, 0, 0};
int[] array2 = addNum(array1, 2, 4, 5);
int[] array1 = {5, 2, 8, 6, 4, 3, 9};
int[] array2 = addNum(array1, 3, 5, 5);
int[] array1 = {5, 8, 2, 4, 6, 3, 9};
int[] array2 = addNum(array1, 2, 4, 5);
int[] array1 = {0, -5, 8, 0, 9, 0, 0};
int[] array2 = addNum(array1, 2, 4, 5);
Similar Resources on Wayground
10 questions
Penilaian Materi Alpro

Quiz
•
11th Grade
10 questions
SDD HSC Quiz 5A Q1-10

Quiz
•
12th Grade
10 questions
Basic C Programming Concepts

Quiz
•
11th Grade
10 questions
Operators in C

Quiz
•
9th - 12th Grade
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
10 questions
Postest Larik (Array)

Quiz
•
11th Grade
10 questions
Exam 2 MC

Quiz
•
10th - 12th Grade
10 questions
Arrays and Lists

Quiz
•
6th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade