Practise Test-1

Practise Test-1

University

20 Qs

quiz-placeholder

Similar activities

Exceptions

Exceptions

University

20 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

Java Coding Questions

Java Coding Questions

University

20 Qs

Java Básico

Java Básico

University

20 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

C - Structures

C - Structures

University

20 Qs

Quiz HTC 2020

Quiz HTC 2020

University

15 Qs

Practise Test-1

Practise Test-1

Assessment

Quiz

Computers

University

Hard

Created by

SATYA CSE

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the ideal time for starting usage of static analyzers?

as soon as coding starts

once all the coding is over

along with system testing

after unit testing

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

which expression will extract substring "kap" from String str="kakapo"?

str.substring(2,2)

str.substring(2,3)

str.substring(2,4)

str.substring(2,5)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following primitive type conversion is

permitted implicitly without using casting?

long to int

float to double

double to long

double to float

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the field declaration is legal within the body of

an interface?

protected static int answer = 42;

volatile static int answer = 42;

int answer = 42;

private final static int answer = 42;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the expressions will evaluate to true if precededby the following code? String a = "hello"; String b = new String(a); String c = a; char[] d = { ‘h’, ‘e’, ‘l’, ‘l’, ‘o’ };

(a == "Hello")

(a == b)

a.equals(b)

a.equals(d)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is not defined in the String class?

reverse()

length()

concat(String)

hashCode()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Suppose you are creating a class named Button that you want to include in a group of related classes called controls. Identify the correct code that includes the class in that group.

public class Button

package controls;

import controls;

package Button;

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?