CGI POB Wave 1 Java Batch

CGI POB Wave 1 Java Batch

Professional Development

10 Qs

quiz-placeholder

Similar activities

Arrays      A

Arrays A

Professional Development

15 Qs

GLOBL 920 R/W Unit 3 Review

GLOBL 920 R/W Unit 3 Review

Professional Development

15 Qs

Know your hotel 27-08-2020

Know your hotel 27-08-2020

Professional Development

7 Qs

vocab #15

vocab #15

KG - Professional Development

10 Qs

Focus on Phonics

Focus on Phonics

Professional Development

12 Qs

First English Session

First English Session

Professional Development

10 Qs

28 12 23         KLU         FN  CLUSTER 5

28 12 23 KLU FN CLUSTER 5

Professional Development

15 Qs

SASI -1st year -DAY1-AN(19.12.23)

SASI -1st year -DAY1-AN(19.12.23)

Professional Development

15 Qs

CGI POB Wave 1 Java Batch

CGI POB Wave 1 Java Batch

Assessment

Quiz

English

Professional Development

Medium

Created by

Gurjinder Singh

Used 1+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Find the output of the following code.

int no = 24;

char str = ‘i’;

System.out.print(no);

System.out.print(ch);

% i

I i

24i

i24

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select the valid statement.

char[] ch = new char(20)

char[] ch = new char[20]

char[] ch = new char()

char[] ch = new char[]

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Find the output of the following program.

public class Solution{

public static void main(String[] args){

int[] x = {120, 200, 016};

for(int i = 0; i < x.length; i++){

System.out.print(x[i] + “ “);

}

}

}

120 200 016

120 200 14

120200 16

None

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select the valid statement to declare and initialize an array.

int[] arr = {}

int[] arr = {1,2,3}

int[] arr = (1,2,3)

int[][] arr = {1,2,3}

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

When is the object created with new keyword?

At run time

Compile time

Depends on code

None

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Identify the correct restriction on static methods.

I. They must access only static data

II. They can only call other static methods.

III. They cannot refer to this or super.

I and II

II and III

Only III

I, II and III

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

To which of the following package does the class string belong to.

java.lang

lava.util

java.io

javax.lang

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?