Java and C Programming Quiz

Java and C Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

python programming quiz

python programming quiz

12th Grade - University

26 Qs

Python Quiz SE 27/10/2023

Python Quiz SE 27/10/2023

University

26 Qs

C Programming

C Programming

12th Grade - University

25 Qs

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

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

University

25 Qs

Tech CivilWar

Tech CivilWar

University

30 Qs

DEBUGGING

DEBUGGING

University

26 Qs

Technical Quiz WCC

Technical Quiz WCC

University

30 Qs

EXAM MMI

EXAM MMI

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?