VCE TalentNext-2021 Quiz-2

VCE TalentNext-2021 Quiz-2

Professional Development

20 Qs

quiz-placeholder

Similar activities

C5 Week 4.2

C5 Week 4.2

Professional Development

20 Qs

Lección1 - JavaScript

Lección1 - JavaScript

1st Grade - Professional Development

17 Qs

C-4 CHAPTAR -1

C-4 CHAPTAR -1

Professional Development

22 Qs

Kotlin Output Quiz

Kotlin Output Quiz

Professional Development

18 Qs

OOP QUIZ ON TYPES,Static keyword

OOP QUIZ ON TYPES,Static keyword

Professional Development

15 Qs

Java Fundamentals MCQs

Java Fundamentals MCQs

Professional Development

25 Qs

PSUEDOCODE 2 CAPGEMINI

PSUEDOCODE 2 CAPGEMINI

Professional Development

25 Qs

Quiz 2- Entrada, Saída e Variáveis

Quiz 2- Entrada, Saída e Variáveis

Professional Development

20 Qs

VCE TalentNext-2021 Quiz-2

VCE TalentNext-2021 Quiz-2

Assessment

Quiz

Computers, Professional Development

Professional Development

Hard

Created by

RAMESH ADAVELLI

Used 17+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ?: operator is called ternary operator , because it operates on

One operand

Two operands

Three operands

Any number of operands

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

int num = false?10:20;

System.out.println(num);

10

20

Compile time Error

num must be of boolean type

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

String name = "java";

int marks = name == "java"?10:20;

System.out.println( marks);

10

20

Invalid Assignment

No output

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

int a = 20, b=30;

boolean result = a&b?true:false;

System.out.println(result);

true

false

Compile Time Error

20

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

int a = 4, b=7;

int result = (true?a&b:a|b)<3?120:150;

System.out.println(result);

4

7

120

150

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

int n=7;

while(n)

{

System.out.println("TalentNext -2021");

}

Prints TalentNext-2021 and terminates

Prints TalentNext-2021 indefinite times

Compile Time Error

No output

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of following code snippet?

int num=40;

if(num >= 40);

System.out.print("ECE ");

System.out.println("EEE");

ECE

EEE

ECE EEE

No Output

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?