Search Header Logo

MSTIP-JavaProgramming-FinalExam

Authored by ALVIN CERTEZA

Computers, Other

University

Used 9+ times

MSTIP-JavaProgramming-FinalExam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. Which of this method is given parameter via command line arguments?

a) main()

b) recursive() method

c) Any method

d) System defined methods

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the Type Conversions available in Java language?

A) Narrowing Type Conversion

B) Widening Type Conversion

A and B

D) None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the below Java code snippet?

char ch = 'A';//ASCII 65

int a = ch + 1;

ch = (char)a;

System.out.println(ch);

A) 66

B) A

C) B

D) 65

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which type of loop is best known for its boolean condition that controls entry to the loop?

A. do-while loop

B. for (traditional)

C. for-each

D. while

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the Output of the below code:

public class Demo{

public static void main(String[] arr){

}

public static void main(String arr){

}

}

a) Nothing

b) Error

C) Finite

d) Hii

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

char is 2 byte in storage?

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Name the data type: '3'

int

char

String

None of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?