stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Intellect Quiz-1 Flashcards | StudBud
Explore
/
Intellect Quiz-1
Intellect Quiz-1
10 terms
·
StudBud Administration
·
39 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What is the output of the following code:
loop
This code does not execute
Infinite times loop will be executed
Compile error
2
What is the result the following code:
FOUND!
Compile error: message not defined
FOUND FOUND FOUND FOUND
FOUND FOUND FOUND
3
A class can implement a maximum of two interfaces
False
True
4
What will the result of this code be:
HelloWorld
This program will throw an error
This program will not run
Hello
5
What not to forget in while-loops?
All the above
Increment the checked value!
If the check is never true the body of the while-loop will never run
Print out some information
6
Java is ... based programming language
class based
prototype based
object based
text based
7
What is the output of this code:
Compile error
This is an infinite loop
Nothing
LOOP
8
To instantiate an object from a Student class, we write
Student stu1 = Student(new);
Student stu1= Student();
Student = new Student();
Student stu1= new Student();
9
Which of the following is a correct array declaration?
String[ ] states;
String names=String[ ];
int[ ] IDs=new { };
double[ ] payments=new double[ ];
10
The core object-oriented programming concepts are
Abstraction, Encapsulation, Constructors, Classes
Classes, Objects, Inheritance, Polymorphism
Abstraction, Encapsulation, Inheritance, Polymorphism
Encapsulation, Overloading, Inheritance, Abstraction