Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Edit Game
PR1-W6-Part1-OOP_Classes&Objects
Delete
Settings
Multiple Choice
Import
Collapse
GIFs
Images đź”’ Plus
×
Start using GIFs
GIFs
Stickers
Text
Relevant
ADD SOUND
Upload
Record
Remove Existing
Upload sound (5MB max, 10s max)
Start Recording (10s max)
Stop
Cancel
Title
Browse gifs, upload image or paste URL
Image Library
Description
Language
Choose a Language
Abkhazian
Afar
Afrikaans
Akan
Albanian
Amharic
Arabic
Aragonese
Armenian
Assamese
Avaric
Avestan
Aymara
Azerbaijani
Bambara
Bashkir
Basque
Belarusian
Bengali
Bihari languages
Bislama
Bosnian
Breton
Bulgarian
Burmese
Catalan, Valencian
Central Khmer
Chamorro
Chechen
Chichewa, Chewa, Nyanja
Chinese
Church Slavonic, Old Bulgarian, Old Church Slavonic
Chuvash
Cornish
Corsican
Cree
Croatian
Czech
Danish
Divehi, Dhivehi, Maldivian
Dutch, Flemish
Dzongkha
English
Esperanto
Estonian
Ewe
Faroese
Fijian
Finnish
French
Fulah
Gaelic, Scottish Gaelic
Galician
Ganda
Georgian
German
Gikuyu, Kikuyu
Greek (Modern)
Greenlandic, Kalaallisut
Guarani
Gujarati
Haitian, Haitian Creole
Hausa
Hebrew
Herero
Hindi
Hiri Motu
Hungarian
Icelandic
Ido
Igbo
Indonesian
Interlingua (International Auxiliary Language Association)
Interlingue
Inuktitut
Inupiaq
Irish
Italian
Japanese
Javanese
Kannada
Kanuri
Kashmiri
Kazakh
Kinyarwanda
Komi
Kongo
Korean
Kwanyama, Kuanyama
Kurdish
Kyrgyz
Lao
Latin
Latvian
Letzeburgesch, Luxembourgish
Limburgish, Limburgan, Limburger
Lingala
Lithuanian
Luba-Katanga
Macedonian
Malagasy
Malay
Malayalam
Maltese
Manx
Maori
Marathi
Marshallese
Moldovan, Moldavian, Romanian
Mongolian
Nauru
Navajo, Navaho
Northern Ndebele
Ndonga
Nepali
Northern Sami
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
Nuosu, Sichuan Yi
Occitan (post 1500)
Ojibwa
Oriya
Oromo
Ossetian, Ossetic
Pali
Panjabi, Punjabi
Pashto, Pushto
Persian
Polish
Portuguese
Quechua
Romansh
Rundi
Russian
Samoan
Sango
Sanskrit
Sardinian
Serbian
Shona
Sindhi
Sinhala, Sinhalese
Slovak
Slovenian
Somali
Sotho, Southern
South Ndebele
Spanish, Castilian
Sundanese
Swahili
Swati
Swedish
Tagalog
Tahitian
Tajik
Tamil
Tatar
Telugu
Thai
Tibetan
Tigrinya
Tonga (Tonga Islands)
Tsonga
Tswana
Turkish
Turkmen
Twi
Uighur, Uyghur
Ukrainian
Urdu
Uzbek
Venda
Vietnamese
Volap_k
Walloon
Welsh
Western Frisian
Wolof
Xhosa
Yiddish
Yoruba
Zhuang, Chuang
Zulu
Tags
Use commas to add multiple tags
Private
Unlisted
Public
Featured
Game of the Day
Game of the Day
Try Baamboozle+ for free
Featured
Featured on Games page
Public
Visible on your profile. Anyone can play.
Unlisted
Hidden from your profile. Anyone with the link or game code can play.
Private
Hidden from your profile. Only you can play.
Save
Cancel
Copy and paste from ChatGPT, Quizlet Export, Word, Excel, Google Docs, etc.
Delimiter between question and answer:
Comma
Tab
Semicolon
Custom
Tips:
No column headers.
Each line maps to a question.
If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
The first answer in the multiple choice question must be the correct answer.
Import questions
Cancel
Question
Answer
Points
5
10
15
20
25
Image options
Question with image
Answer with image
Browse gifs, upload image or paste URL
Image Library
Save
24
Close
24. Which access modifier allows visibility only within the same class? (2)
C
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
23. Which of these is not part of the typical class structure? (1)
D (A class describes fields, methods, constructors. Memory addresses are runtime details, not class structure)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
21. Which of the following is a valid reason to make a field private and use getters/setters? (2)
C (Private fields prevent arbitrary external modification; setters can validate values)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
Won 5 points
5
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
20. Predict the output: (4)
Hello from B (Dynamic dispatch — method chosen at runtime based on actual object type, not reference type)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
18.What will be printed? (4)
10 (Constructor assigns value; method prints it)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
17.Which line causes compile error? (3)
The System.out.println(x); line (x is an instance field; main is static → cannot access directly without an object)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
16. Given String s1 = new String("hi"); String s2 = "hi";, what is s1 == s2? (3)
B (new String("hi") creates a separate object on the heap; s2 references the interned literal)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
15. Given String s1 = "hi"; String s2 = "hi";, what is s1 == s2? (3)
B ( String literals are interned; identical literals refer to the same object in the string pool, so == is true)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
14. Which statement about equals() is correct? (3)
B (Object.equals() tests this == obj. Many classes (e.g., String) override it to compare content)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
Won 25 points
25
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
13. What does the expression a == b test when a and b are object references? (3)
B ( == compares references for objects. equals() can be overridden to compare content.)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
12. Which is true about static fields? (2)
B (Only one copy of a static field exists per class loader; all instances share it)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
11. Which keyword refers to the current instance inside an instance method or constructor? (2)
C. this
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
10. What is the output? (3)
2 (Static field count is shared across all objects. Each constructor increments once)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
9. What is printed? (3)
70.0 (Withdraw subtracts from balance, leaving 70)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
8. What happens? (3)
Compile error (No default constructor is available since the class declared a constructor with parameters)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
7. What is the output? (2)
Fido (d1 and d2 refer to the same object → changing through one affects the other.)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
6. What is the output? (2)
5 (int is primitive → assignment copies the value. Changing y does not affect x.)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
5. Which of the following best describes encapsulation? (2)
B (Encapsulation uses private fields and public getters/setters or methods to control access)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
4. Which statement about the main method is correct? (2)
B (JVM calls public static void main(String[] args) without creating an object, so main is static)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
3. What does a class represent in object-oriented programming? (1)
B (A class defines fields and methods. Instances (objects) are created from that blueprint.)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
2. Which of the following is not a primitive type in Java? (1)
C. String
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
1. Which Java keyword is used to create a new object (an instance) of a class? (1)
C. new (Example: Dog d = new Dog();)
5
10
15
20
25
Image
Browse gifs, upload image or paste URL
Image Library
Image options
Question with image
Answer with image
×
Sign up for a trial to unlock features.
Get Started
Your experience on this site will be improved by allowing cookies.
Allow cookies