
Java and C Programming Quiz

Quiz
•
Other
•
University
•
Hard
DHURGATHARAN R
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The concept of multiple inheritance is implemented in java by
(ii) and (iii)
only (ii)
(i) and (ii)
only (iii)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print? x = "hello" y = x.replace('l', 'L') print(y)
hello
Error
heLlo
heLlo
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to set the size of a component?
setMinimumSize()
setSize()
setPreferredSize()
setBounds()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators cannot be overloaded?
?:
Both B and C
>>
.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C program
#include
the value of shifty is 2600
the value of shifty is 5447
the value of shifty is 0273
the value of shifty is 1300
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you call this button?
Find Button
Error Button
Debugging Button
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Code with error: public class Main { public static void main(String[] args) { Integer num1 = 127; Integer num2 = 127; System.out.println(num1 == num2); } }
Initialize num1 with Integer.valueOf(127)
Use System.out.println(num1 != num2);
Use num1.equals(num2)
Change Integer to int
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Webathan

Quiz
•
University
25 questions
UNIT - 3 B Intermediate Code Generation Quiz

Quiz
•
University
30 questions
CSC305 Topic 1 & 2

Quiz
•
University
30 questions
28/01/2024

Quiz
•
University
30 questions
Repaso C Cs50

Quiz
•
University
25 questions
c language

Quiz
•
University
25 questions
Introduction to Python and Data Analytics Basics

Quiz
•
University
30 questions
OODP FT1 Assessment Questions

Quiz
•
University
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