
OOP_Lecture 07 & 08

Quiz
•
Education
•
University
•
Hard
lecturer note
FREE Resource
6 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a Java statement that declares a string array initialized with the following strings:
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" and "Saturday".
After that, write a loop that displays the contents of each element in the array that you declared.
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a program that creates an array of 10 elements size. Your program should prompt the user to input numbers in array and then display the sum of all array elements.
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
4. The variable list1 and list2 are reference arrays that each have 5 elements. Write code that copies the values in list1 to list2. Values in list1 are input by user.
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a Java program and use for loop to find the largest and smallest element of an array.
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a Java program that creates an array of int and initializes it with the values 3, 2, 5, and 1. Then, use a while loop to find and print the smallest element in the array.
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a Java program that creates an array of integers and initializes it with the values 2, 4, 6, 8, and 10. Then, use a do-while loop to calculate and print the product of all the values in the array
Evaluate responses using AI:
OFF
Similar Resources on Wayground
10 questions
PRUEBA DE JAVA MASTERY

Quiz
•
University
10 questions
WEEK 10 - JAVA

Quiz
•
University
10 questions
College Terminology C-D

Quiz
•
University
10 questions
Hari 3 - Kuis Coding & Perkenalan AI

Quiz
•
KG - University
10 questions
Quiz 4

Quiz
•
University
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
java

Quiz
•
University - Professi...
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade