Complete Question Index

Browse through all 2134 assessment questions (Page 7 of 15)

Generative AIPart 9 — Applications, Ethics & Future

Which industry widely uses generative AI for creative media?

Generative AIPart 9 — Applications, Ethics & Future

Data augmentation via generative models mainly helps to:

Generative AIPart 9 — Applications, Ethics & Future

Regulation and policy are needed because:

Generative AIPart 9 — Applications, Ethics & Future

A practical mitigation for deepfakes is:

Generative AIPart 9 — Applications, Ethics & Future

Multi-modal generative models combine:

Generative AIPart 9 — Applications, Ethics & Future

Job displacement risk suggests:

Generative AIPart 9 — Applications, Ethics & Future

Which direction is important for future generative AI?

Generative AIPart 9 — Applications, Ethics & Future

Intellectual property questions involve:

Generative AIPart 9 — Applications, Ethics & Future

When deploying a generative model for production, you should:

Java Programming01 Introduction To Java

Using Java we can develop ___________________.

Java Programming01 Introduction To Java

The main method in java should ___________.

Java Programming01 Introduction To Java

The break statement cannot be present for _____________ construct.

Java Programming01 Introduction To Java

A continue statement makes the execution jump to ______________.

Java Programming01 Introduction To Java

Identify the features of java.

Java Programming01 Introduction To Java

a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?

Java Programming01 Introduction To Java

JRE comprises of ___________ and ___________.

Java Programming01 Introduction To Java

What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static void main(String [] arg...

Java Programming01 Introduction To Java

The ________________ statement causes the program execution to stop and JVM to shut down.

Java Programming01 Introduction To Java

JVM is independent of OS

Java Programming01 Introduction To Java

To compile, debug and execute a program written in java, _______________ is required.

Java Programming01 Introduction To Java

State true or false. Java is a structured programming language.

Java Programming01 Introduction To Java

Who is the father of Java?

Java Programming01 Introduction To Java

What is Polymorphism?

Java Programming01 Introduction To Java

How was Java initially named?

Java Programming01 Introduction To Java

Java is _____________________________.

Java Programming01 Introduction To Java

What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } while (x++ < y); 6. S...

Java Programming01 Introduction To Java

What will be the output of the program? Given: 10. int x = 0; 11. int y = 10; 12. do { 13. y--; 14. ++x; 15. } while (x < 5); 16. System.out.print(x +...

Java Programming01 Introduction To Java

What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) =...

Java Programming01 Introduction To Java

Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System.out.println("Hello"...

Java Programming01 Introduction To Java

What value is stored in i at the end of this loop? for(int i =1;i<=10;i++)

Java Programming01 Introduction To Java

The break statement causes an exit ___________

Java Programming01 Introduction To Java

Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?

Java Programming01 Introduction To Java

French curly braces { } is a must if the for loop executes more than one statement. State true or false.

Java Programming01 Introduction To Java

What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.p...

Java Programming01 Introduction To Java

What will be the output of the program? int i = 1, j = -1; switch (i) { case 0, 1: j = 1; /* Line 4 */ case 2: j = 2; default: j = 0; } System.out.pri...

Java Programming02 Eclipse Ide

A project developed on one machine can be included in the current workspace by ___________ that project.

Java Programming02 Eclipse Ide

State True or False. When typing the code in code editor, it fixes the compilation error. It also assists in how to fix that error.

Java Programming02 Eclipse Ide

We can move an already existing project in eclipse to another location by compressing it. This we call as ________ the project.

Java Programming02 Eclipse Ide

Eclipse, the plugin that is needed for Java Development is ______________.

Java Programming02 Eclipse Ide

Predict the output int a=0; if(a) System.out.println( "Hello"); else System.out.println( "Hai");

Java Programming02 Eclipse Ide

What will be the output of the program? public class Sample { public static void main(String [] args) { int i = 10; do while ( i < 10 ) System.out.pri...

Java Programming02 Eclipse Ide

__________ generates the byte code for a given file with .java extension.

Java Programming02 Eclipse Ide

Which edition of java is used for developing web application?

Java Programming02 Eclipse Ide

State True or False For compiling a java code we have separate compilers for different OS.

Java Programming02 Eclipse Ide

Which of the following options remain true for case constants in a switch construct?

Java Programming02 Eclipse Ide

Who executes the byte code in java?

Java Programming03 Class And Objects, Date Api

The methods of a class with the ____________ access specifier cannot be accessed in its subclass class of different package.

Java Programming03 Class And Objects, Date Api

Predict the output. class X { void display(int a) { System.out.println("INT"); } void display(double d) { System.out.println("DOUBLE"); } } public cla...

Java Programming03 Class And Objects, Date Api

Observe the code public class Sample { public static void main(String [] args) { int x = 6; Sample p = new Sample(); p.display(x); System.out.print(" ...

Java Programming03 Class And Objects, Date Api

Integer x1 = new Integer(120); int x2 = 120; System.out.println( x1 == x2 ); What will be the output of the above code fragment?

Java Programming03 Class And Objects, Date Api

Given: public class Message { String msg; int noOfWords; public Message() { msg += " Thank you"; } public Message(int noOfWords) { this.noOfWords = no...

Java Programming03 Class And Objects, Date Api

Given classes defined in two different files: 1. package p1; 2. public class Test { 3. public static void display(String [] a) { /* some code */ } 4. ...

Java Programming03 Class And Objects, Date Api

What is the outcome of the code? public class Item { private String description; public String getDescription() { return description; } public void se...

Java Programming03 Class And Objects, Date Api

Which of the following is not a Java modifier?

Java Programming03 Class And Objects, Date Api

switch(a) { default: System.out.println("Welcome"); } Of which data types can the variable a be? 1. long 2. byte 3. int 4. char 5. float 6. short

Java Programming03 Class And Objects, Date Api

Predict the output. public class Test { public static void main(String args[]) { int a = 2, b = 0; for ( ; b < 20; ++b) { if (b % a == 0) continue; el...

Java Programming03 Class And Objects, Date Api

What will be the output of the following code? int i=20; if(i>10) { System.out.println( "The value of i is "+i); i++; if(i%2!=0) break; }

Java Programming03 Class And Objects, Date Api

State True or False When using eclipse whichever classes are needed for the present class can be imported automatically.

Java Programming03 Class And Objects, Date Api

Eclipse IDE, if we provide a workspace, it should already exist. If not, it will not open.

Java Programming03 Class And Objects, Date Api

___ and _____ are the access specifiers that can be applied to top level Class.

Java Programming03 Class And Objects, Date Api

class Sample{ private double num = 100; private int square(int a){ return a*a; } } public class Test{ public static void main(String args[]){ Sample o...

Java Programming03 Class And Objects, Date Api

Choose the appropriate access specifier for the attribute value so that it can be accessed from anywhere. class Test { public int value; }

Java Programming03 Class And Objects, Date Api

Consider the below code snippet and determine the output. class Student { private int studentId; private float average; } class Test { public static v...

Java Programming03 Class And Objects, Date Api

The below code snippet shows an error cannot find symbol: System.out.println("BookId:"+bobj.getId()); public class Book { private int bookId; private ...

Java Programming03 Class And Objects, Date Api

Observe the below code. public class Student { private int id; private String name; private char grade; //Constructor 1 public Student() { id=0; name=...

Java Programming03 Class And Objects, Date Api

Observe the code below. public class Student { int studentId; String name; char grade; public Student(int studentId, String name, float mark) { this.s...

Java Programming03 Class And Objects, Date Api

Observe the below class. class Product{ int productId; String productName; Product { productId=0; productName= ; } Product(int id, String name) { //ac...

Java Programming03 Class And Objects, Date Api

Given the class Book and Library in two different packages : 1. package model; 2. public class Book { 3. private static void countBook { } 4. } 1. pac...

Java Programming03 Class And Objects, Date Api

Given the class Book in packages p1 and class Main in package p2. In main to create an object of Book, which of the following are valid.

Java Programming03 Class And Objects, Date Api

Assume class Calculator in package p1 and CalculatorService class in package p2 as shown below. package p1; public class Calculator { __________ stati...

Java Programming03 Class And Objects, Date Api

Choose the correct order of the Java code fragments: 1) public class Main, 2) import java.util.Scanner;, 3) {, 4) // Some code here, 5) }, 6) package ...

Java Programming03 Class And Objects, Date Api

For the below code, what are the valid ways to invoke display method in the main method. public class Test { public static void display(){ } } public ...

Java Programming04 Arrays And Strings

Given a one-dimensional array arr, what is the correct way of getting the number of elements in arr?

Java Programming04 Arrays And Strings

class ArrayTest { public static void main(String args[]) { int[] primes = new int[10]; primes[0] = "a"; System.out.println(primes[0]); } } What will b...

Java Programming04 Arrays And Strings

Partially List the correct ways of declaring an Array.

Java Programming04 Arrays And Strings

class TestArray { public static void main(String args[]) { int arr_sample[] = new int[2]; System.out.println(arr_sample[0]); } } What will be the resu...

Java Programming04 Arrays And Strings

String name="teknoturf"; String cname="teknoturf"; String compname=new String("teknoturf"); 1.if(name==cname) 2.if(name.equals(cname)) 3.if(name==comp...

Java Programming04 Arrays And Strings

What is the output of this program? class Output { public static void main(String args[]) { int a1[] = new int[10]; int a2[] = {1, 2, 3, 4, 5}; System...

Java Programming04 Arrays And Strings

StringBuilder is less eficient and slower than StringBuffer. State true or false.

Java Programming04 Arrays And Strings

State True or False. Advanced for loop is better as it is less error prone as we don't need to deal with index.

Java Programming04 Arrays And Strings

which of the following packages can you find String class?

Java Programming04 Arrays And Strings

StringBuffer is used to create ______________.

Java Programming04 Arrays And Strings

String Objects are mutable. State true or false.

Java Programming04 Arrays And Strings

What does this() mean in constructor chaining concept?

Java Programming04 Arrays And Strings

package edu.ABC.model; public class Account { public static final float INTERTEST_RATE = 7.5; } Identify the correct options from the classes provided...

Java Programming04 Arrays And Strings

Identify which statement is true about construtors.

Java Programming04 Arrays And Strings

Which members of a class can be accessed by other classes is determined by the ________________

Java Programming04 Arrays And Strings

Predict the Output of following Java Program. class Test { int x = 10; public static void main(String[] args) { System.out.println(x); } }

Java Programming04 Arrays And Strings

Identify the true statement(s). Statement 1 : When no constructor is written in a class, the compiler creates a default constructor Statement 2 : The ...

Java Programming04 Arrays And Strings

Given: public class ItemTest { private final int id; public ItemTest(int id) { this.id = id; } public void updateId(int newId) { id = newId; } public ...

Java Programming04 Arrays And Strings

A JavaBeans component has the following field: private boolean enabled; Which two pairs of method declarations follow the JavaBeans standard for acces...

Java Programming05 Regular Expression

The first name of a person should contain only alphabets and space. Which of the following regular expression will match the requirement?

Java Programming05 Regular Expression

Which of the following text when matched with the regular expression [a-zA-Z&&[^aeiou]]+ will return true?

Java Programming05 Regular Expression

What is the regular expression to match a whitespace character in a string?

Java Programming05 Regular Expression

What is the regular expression to match a digit (0-9) in a string?

Java Programming05 Regular Expression

00means X occurs zero or more times

Java Programming05 Regular Expression

What is the regular expression to match any email address in a string?

Java Programming05 Regular Expression

Consider the below statements. Statement 1 : Matcher class interprets the pattern in a String Statement 2 : Matcher class matches the regular expressi...

Java Programming05 Regular Expression

\B means A word boundary

Java Programming05 Regular Expression

Predict the output of the below code : import java.util.regex.*; public class TestRegEx{ public static void main(String args[]) { Pattern p = Pattern....

Java Programming05 Regular Expression

What is the regular expression to match any date in the format "yyyy-mm-dd" in a string?

Java Programming05 Regular Expression

Observe the below code snippet String name="Sudha learns Oracle"; System.out.println(name.substring(7,12)); What is the output of the above code?

Java Programming05 Regular Expression

Predict the output of the below code : String emailId="john#global.com"; System.out.println(emailId.indexOf('@'));

Java Programming05 Regular Expression

What can be the parameters for the indexOf method in String class?

Java Programming05 Regular Expression

Observe the below code : String course="Java Programming"; char c=course.charAt(16); System.out.println(c); What will be the output for the above code...

Java Programming05 Regular Expression

Assume that the ID of an employee should start with "CBE" or "BLR" or "HYD" followed by hyphen (-) followed by 4 digits. Choose the apt regular expres...

Java Programming05 Regular Expression

Which of the following matches X occurs n or more times?

Java Programming1. Introduction To Java

The ________________ statement causes the program execution to stop and JVM to shut down.

Java Programming1. Introduction To Java

Using Java we can develop ___________________.

Java Programming1. Introduction To Java

The break statement cannot be present for _____________ construct.

Java Programming1. Introduction To Java

A continue statement makes the execution jump to ______________.

Java Programming1. Introduction To Java

What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static void main(String [] arg...

Java Programming1. Introduction To Java

a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?

Java Programming1. Introduction To Java

Identify the features of java.

Java Programming1. Introduction To Java

JRE comprises of ___________ and ___________.

Java Programming1. Introduction To Java

The main method in java should ___________.

Java Programming1. Introduction To Java

Java is _____________________________.

Java Programming1. Introduction To Java

JVM is independent of OS

Java Programming1. Introduction To Java

To compile, debug and execute a program written in java, _______________ is required.

Java Programming1. Introduction To Java

How was Java initially named?

Java Programming1. Introduction To Java

State true or false. Java is a structured programming language.

Java Programming1. Introduction To Java

Who is the father of Java?

Java Programming1. Introduction To Java

What is Polymorphism?

Java Programming1. Introduction To Java

The break statement causes an exit ___________

Java Programming1. Introduction To Java

What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } while (x++ < y); 6. S...

Java Programming1. Introduction To Java

Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System.out.println("Hello"...

Java Programming1. Introduction To Java

What value is stored in i at the end of this loop? for(int i =1;i<=10;i++)

Java Programming1. Introduction To Java

What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) =...

Java Programming1. Introduction To Java

What will happen when the following code is compiled and run in Java 1.8? int i = 1, j = -1; switch(i) switch (i) { case 0, 1: j = 1; /* Line 4 */ cas...

Java Programming1. Introduction To Java

What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.p...

Java Programming1. Introduction To Java

What will be the output of the program? Given: 10. int x = 0; 11. int y = 10; 12. do { 13. y--; 14. ++x; 15. } while (x < 5); 16. System.out.print(x +...

Java Programming1. Introduction To Java

French curly braces { } is a must if the for loop executes more than one statement. State true or false.

Java Programming1. Introduction To Java

Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?

Java Programming2. Eclipse Ide

State True or False. When typing the code in code editor, it shows the compilation error. It also assists in how to fix that error.

Java Programming2. Eclipse Ide

Eclipse, the plugin that is needed for Java Development is ______________.

Java Programming2. Eclipse Ide

A project developed on one machine can be included in the current workspace by ___________ that project.

Java Programming2. Eclipse Ide

We can move an already existing project in eclipse to another location by compressing it. This we call as ________ the project.

Java Programming2. Eclipse Ide

Which of the following options remain true for case constants in a switch construct?

Java Programming2. Eclipse Ide

What will be the output of the program? public class Sample { public static void main(String[] args) { int i = 10; do while (i < 10) { System.out.prin...

Java Programming2. Eclipse Ide

State True or False For compiling a java code we have separate compilers for different OS.

Java Programming2. Eclipse Ide

__________ generates the byte code for a given file with .java extension.

Java Programming2. Eclipse Ide

Who executes the byte code in java?

Java Programming2. Eclipse Ide

Which edition of java is used for developing web application?

Java Programming2. Eclipse Ide

Predict the output int a=0; if(a) System.out.println( "Hello"); else System.out.println( "Hai");

Java Programming3. Class And Objects, Date Api

Which of the following is not a Java modifier?

Java Programming3. Class And Objects, Date Api

Predict the output. class X { void display(int a) { System.out.println("INT"); } void display(double d) { System.out.println("DOUBLE"); } } public cla...

Java Programming3. Class And Objects, Date Api

Integer x1 = new Integer(120); int x2 = 120; System.out.println( x1 == x2 ); What will be the output of the above code fragment?

Java Programming3. Class And Objects, Date Api

Observe the code public class Sample { public static void main(String [] args) { int x = 6; Sample p = new Sample(); p.display(x); System.out.print(" ...

Java Programming3. Class And Objects, Date Api

Given classes defined in two different files: 1. package p1; 2. public class Test { 3. public static void display(String [] a) { /* some code */ } 4. ...

Java Programming3. Class And Objects, Date Api

The methods of a class with the ____________ access specifier cannot be accessed in its subclass class of different package.

PreviousPage 7 of 15Next