Java and C Programming Quiz

Java and C Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

APTITUDE PRACTICE TEST MOCK-1 @ 14-7-2020

APTITUDE PRACTICE TEST MOCK-1 @ 14-7-2020

University

25 Qs

C Language

C Language

University

32 Qs

Con trỏ

Con trỏ

University

25 Qs

Conceptos básicos de C++

Conceptos básicos de C++

University

25 Qs

Verifica Sistemi 3B 03/2025

Verifica Sistemi 3B 03/2025

10th Grade - University

32 Qs

Câu Hỏi Trắc Nghiệm Về Con Trỏ và Mảng

Câu Hỏi Trắc Nghiệm Về Con Trỏ và Mảng

University

27 Qs

Round 2- Syntax ShowDown

Round 2- Syntax ShowDown

University

25 Qs

Modeule-I-C

Modeule-I-C

University

25 Qs

Java and C Programming Quiz

Java and C Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

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 int main () { int shifty; shifty = 0273; shifty = shifty >>4; shifty = shifty <<6; printf("the value of shifty is %o",shifty); return 0; }

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

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?