QUIZ DAILY JAVA CORE

QUIZ DAILY JAVA CORE

Professional Development

26 Qs

quiz-placeholder

Similar activities

Starr Review

Starr Review

3rd Grade - Professional Development

21 Qs

Solving absolute value/radical equations review

Solving absolute value/radical equations review

10th Grade - Professional Development

21 Qs

Multiplying Polynomials- Part 2

Multiplying Polynomials- Part 2

Professional Development

21 Qs

Introducción a métodos de rectas para pruebas de presión

Introducción a métodos de rectas para pruebas de presión

University - Professional Development

24 Qs

KUIS SKD CPNSPEDIA SESI 1

KUIS SKD CPNSPEDIA SESI 1

12th Grade - Professional Development

30 Qs

QUIZ TSM PKBM

QUIZ TSM PKBM

Professional Development

22 Qs

SIMULADOR MATEMÁTICAS NORMALES PIEN, OAXACA

SIMULADOR MATEMÁTICAS NORMALES PIEN, OAXACA

Professional Development

22 Qs

SIMULACRO DE MATEMÁTICAS PRUEBA SABER 11

SIMULACRO DE MATEMÁTICAS PRUEBA SABER 11

11th Grade - Professional Development

21 Qs

QUIZ DAILY JAVA CORE

QUIZ DAILY JAVA CORE

Assessment

Quiz

Mathematics

Professional Development

Practice Problem

Hard

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of these statements?

class OperatorExample{ 

public static void main(String args[]){ 

int a=10; 

int b=20; 

a+=4;

b-=4;

System.out.println(a); 

System.out.println(b); 

}}

A. 4 and 4

B. 14 and 4

C. 14 and 16

D. 14 and 24

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of these statements?

for (int i = 1; i <= 10; ++i) {     

System.out.print(i);

}

A. 2345678910

B. 23456789

C. 234567891011

D. 12345678910

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following opinion is TRUE about break and continue statement?

A. continue leaves a loop, break jumps to the next iteration.

B. break skips the current iteration of a for, while , or do-while loop

C. break leaves a loop, continue jumps to the next iteration.

D. None of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of these statements? 

   for(int i=0;i<10;i++)  

  {    

  if (i==4)     

   {     

       break;  

      }    

    System.out.print(i);  

  }

A. 012

B. 0123

C. 01234

D. None of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of these statements? 

   for(int i=0;i<10;i++)  

  {       

if (i==4)     

   {      

      continue;   

     }    

    System.out.print(i+"\t");  

  }

A. 0123

B. 01234

C. 012356789

D. None of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Types of Java Comments include:

A. Single Line Comment

B. Multi Line Comment

C. Documentation Comment

D. A and B are TRUE

E. A, B and C are TRUE

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of sorting with following statements?  

  static void mySort(int[] arr) {     

     int n = arr.length;    

      int temp = 0;    

       for(int i=0; i < n; i++){                

   for(int j=1; j < (n-i); j++){                  

          if(arr[j-1] > arr[j]){                            

       //swap elements                     

              temp = arr[j-1];                  

                 arr[j-1] = arr[j];               

                    arr[j] = temp;             

              }            

  }   

  } 

A. BubbleSort

B. SelectionSort

C. InsertionSort

D. None of the above

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?