Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

OOPME

OOPMEBADCV

QuestionAnswer
File extension name of a java file. (.java | .javac | .javax | .class) .java
Netscape Navigator was developed in 1995 to support Java. True
Every statement in Java language should end with "<>"? false
`boolean` data type has only two values true
Correct command for running a java application named `Hello.java` using console (`javac Hello.java` | `javac Hello.txt` | `java Hello` | `java Hello.txt`) java Hello
The goal in developing netbeans was to write a Delphi- like Java IDE in Java for the first time. true
What is the name of the class in this program: `class HelloJava{ public static void main(String args[ ]){ System.out.println(“Hello Java”); } }` (`String args` | `HelloJava` | `System` | `main`) HelloJava
A file that is compiled to produce bytecode file (word file | class file | procedures | java source code) java source code
A valid Identifier or name in Java language can start with which character? (option2: $, _ | both option1 and option2 | option1: a-z, A-Z | 0-9) both option1 and option2
Java is a portable language that could run on any platform. The language was able to do this by generating intermediate code for a hypothetical computer called a virtual machine. True
A java edition that is It is developed using the Java Community Process (Micro Edition | Standard Edition | Enterprise Edition) Enterprise Edition
Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. false
`long` has a value that ranges from -32768 to 32767 false
Java Wrapper Classes are used in converting one data type into another data type. true
A feature of Netbeans that makes it easy to create, deploy and import java beans. (Java 2 Platform, Micro Edition (J2ME) MIDP development | Web Services Development | Enterprise Java Beans (EJB) Development) Enterprise Java Beans (EJB) Development
The __________ creates a software simulation of a CPU and memory and handles all communication between the Java program and the underlying operating system and hardware. (JMV | MJV | JVM | JJM) JVM
A function in C language is similar to what in Java language? (Member | None of the above | Variable | Method) Method
`static` is a not the state of a method false
What are the valid White Spaces available in Java language? (Enter | All the above | Tab | Space) All the above
`println()`provides string formatting. false
`static` is a state of a method true
`byte` has a maximum value of 128 false
All methods and variables in Java language are kept inside a Class? true
The `main` method is declared `public` so that it is accessible as part of the public interface of the program. true
The class file is normally compiled to produce the bytecode file (.class file) which is normally interpreted by the Java virtual machine (JVM). False
`short` has a width of 2 bytes true
A documentation or javadoc comment is enclosed between `/**` and `*/` true
A Netbeans feature that gives it an extensible Component Palette pre-installed Swing and AWT components, showing a components tree and properties, automatic code generation and full JavaBeans support. (Version control Support | XML | GUI Builder) GUI Builder
`nextLine()` reads a String value from the user. true
Netbeans feature w/ wizards for making web services and web services clients, providing the basic code needed, and easy to use testing tools. (Micro Edition MIDP development | Enterprise Java Beans (EJB) Development | Web Services Development) Web Services Development
C++ is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. False
The identifier name may be a reserved word. false
In standalone Java applications, which method is mandatory? (display method | show method | print method | main method) main method
The `System` keyword defines a template for an object of derived type HelloWorld false
A java edition that provides a robust, flexible environment for applications running on embedded and mobile devices in the Internet of Things (Enterprise Edition | Micro Edition | Standard Edition) Micro Edition
Netbeans feature w/ Syntax highlighting for Java, XML, HTML, CSS, JSP and IDL, full support of new JDK 1.5 features, live parsing/error marking, popup javadoc, code completion, and fast class importing. (Award Winning Debugger | Code Editor | Refactoring) Code Editor
An IDE doesn't have Compiler and/or interpreter. false
`nextB()` reads a byte value from the user. false
A string is enclosed with double quotation marks. true
Netbeans started as a student project called Selfie false
`\n` is an escape character for new line. true
It reads a `boolean` value from the user. (`nextBoolean` | `nextBool` | `nextBoolean()` | `nextBool()`) nextBoolean()
One of the tools for Object oriented design doesn't include class browser false
An IDE may have Various tools to simplify the construction of a GUI. true
`float` has a width of 8 bytes false
A single-line comment starts with `//` true
One of the tools for Object oriented design includes object inspector true
`printf()`provides string formatting. true
What is the need to mention `static` before `main` method? (Option2:To make main method as class method common to all instances | Option1 : To call main method without creating an object of class | None of the above | Both Options 1 and 2) Both Options 1 and 2
`nextInteger()` reads a integer value from the user. false
`out` is a `private static` field false
`nextLong()` reads a long value from the user. true
Netbeans Matisse doesn't support internationalization, and industrial look-and-feel rules, which is very important for large scale application meant to be spread world wide. false
A feature of Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding. (Award Winning Debugger | Refactoring | Code Editor) Refactoring
`API` stands for Application Programmable Interface false
The `main` method is declared `private` so that it is accessible as part of the private interface of the program. false
The command to compile a java source code. (`javadoc` | `java` | `javac`) javac
`nextFloat()` reads a float value from the user. true
`double` data type has a width of 16 in bytes. false
Means that Java can be programmed without extensive programmer training while being attuned to current software practices (Simple, object-oriented, and familiar | High performance | Architecture neutral and portable | Interpreted, threaded, and dynamic) Simple, object-oriented, and familiar
What is the name of the class in this program: `class Square{ public static void main(String args[ ]){ System.out.println(“This is a Square”); } }` (`Square` | `main` | `System` | `String args`) Square
A feature that the Java interpreter can execute the bytecodes directly on any machine to which the interpreter (Simple, object-oriented, and familiar | Architecture neutral and portable | Interpreted, threaded, and dynamic | High performance) Interpreted, threaded, and dynamic
Identifiers are names that are given by the programmer as name of variables, methods or functions, classes etc true
`print()` prints string inside the quotes then the cursor moves to the beginning of the next line false
`main` method is `void` because the Java interpreter does not expect to receive or process any output from the class. true
What is the default return type of a method in Java language? (`int` | `void` | `short` | None of the above) void
`String` is a derived data type true
Who developed Java? (James Gosling | None of the options | Dennis Ritchie | Bjarne Stroustrup) James Gosling
The `class` keyword defines a template for an object of derived type HelloWorld true
A multi-line comment enclosed within `/* …. **/` false
arithmetic operator is a mathematical function that takes two operands and performs a calculation on them. True
An operator that shifts bits to the left or right shift. shift operator
The for loop executes a given statement or block of statements repeatedly as long as the value of the expression is true. false
The _______ statement causes the program flow to exit from the body of the switch construct break
The ______ statement causes the program flow to skip over and jump to the end of the loop body, and then return the control to the loop control statement. continue
The do-while loop facilitates evaluation of condition or expression at the end of the loop to ensure that the statements are executed at least once true
What is the Enhanced for Loop (foreach)? It transverses all elements of a collection.
Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. ( ! | == | = | != ) !=
The _____ statement performs a different set of statements if the expression is false. else
What is the result of 7|2 7
What is the operator in which The left operands value is moved right by the number of bits specified by the right operand and shifted values are filled up with zeros. >>>
The ________ identifies any valid statement to which control must be transferred label
The statements associated with this keyword is executed if the value of the switch variable does not match any of the case constants. default
An operator that multiplies values on either side of the operator. ( * | / | - | + ) *
increase the value of the variable by a particular number by which it is increased ( increment op | decrement op ) increment op
unary operator is an operator used to perform bitwise operations on bit patterns or binary numerals that involve the manipulation of individual bits false
The statements associated with else keyword is executed if the value of the switch variable does not match any of the case constants. true
The else statement performs a different set of statements if the expression is false. True
It adds right operand to the left operand and assign the result to left operand. ( += | *- | -= | /= ) +=
The lbl identifies any valid statement to which control must be transferred false
The for loop facilitates evaluation of condition or expression at the end of the loop to ensure that the statements are executed at least once false
is an operator used to perform bitwise operations on bit patterns or binary numerals that involve the manipulation of individual bits bitwise operator
If both the operands are non-zero, then the condition becomes true. ( && | ! | || ) &&
An operator that has the effect of 'flipping' bits. ~ (bitwise complement)
What is the index value of the first element? 0
The for loop is for traversing items in a collection false
Cast operator is used in converting one type into another type or an object into another true
Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. >
The break statement causes the program flow to exit from the body of the switch construct. true
Increment operators increase the value of the variable by a particular number by which it is increased true
When a piece of code runs unintentionally forever it is known as infinite loop
Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. >=
An operator that copies a bit if it exists in either operand. | (bitwise OR)
unary operator is an operator that takes only one value for its operation true
It is a mathematical function that takes two operands and performs a calculation on them. arithmetic operator
It consists of three operands and is used to evaluate Boolean expressions ternary operator
What is the result of -7%2 -1
Behavior acts like the ______ of an object. verbs
Where does a java program start executing instructions from (object | source file | main method | class ) main method
T or F. OOP describes the task to be performed on objects. True
T or F. You must explicitly extend class Object. False
Custom Methods – implement the business rules for which the application is being developed True
this can be used to refer current class instance variable. True
These variables identify the data stored in the object. Attributes
Accessor (Getter) – a method that is used to access or retrieve data. True
`this` keyword can be used to invoke current class method (implicitly) True
Encapsulation is also called as? (Data Hiding | Data Encapsulation | All of the Above) Data Hiding
Encapsulation is supported by ___________ ( Classes | Objects | Methods ) Classes
What type of inheritance does Java have? Single Inheritance
Which feature can be implemented using encapsulation? Abstraction
Which among the following best defines single level inheritance? ( A class which gets inherited by 2 classes | A class inheriting a derived class | A class inheriting a base class) Class inheriting a base class
The private member's are made public to all the classes in inheritance. False
If class A and class B are derived from class C and class D, then ( That is multilevel inheritance | Those are 2 pairs of single inheritance | Those are enclosing class ) Those are 2 pairs of single inheritance
Which programming language doesn't support multiple inheritance? Java
Method overriding is combination of inheritance and polymorphism? True
Which of four pillars is a mechanism by which object acquires the properties of another object? Inheritance
Which of the four pillars is often expressed by the phrase, 'One interface, multiple methods'? Polymorphism
Procedural Programming is a technique of solving a problem and breaking it down into smaller parts and solving each of the smaller problems. true
Mutator (Setter) – a method that is used to change the data. true
Standard Methods – used to change or access the private data in an object. true
final Variable: constant variable true
Constructor – declared either at the start or end of a class definition. These variables identify the data stored in the object. False
Constructor – a method that is automatically executed when an object is created. This method is used to initialize the attributes. true
How can Encapsulation be achieved? ( Using Abstraction | Using only private members | Using Inheritance | Using Access Specifiers) Using Access Specifiers
What type of inheritance does Java have? Single Inheritance
In Inheritance, the programmer can change one part of the code without affecting other parts False
Abstraction is the way to add functions in a user defined structure. False
Encapsulation is supported by ___________( Methods | Classes | Objects) Classes
The private member's are made public to all the classes in inheritance. False
In hierarchical inheritance, all the classes involve some kind of inheritance. False
The private members of the base class are visible in derived class but are not accessible directly. True
Which constructor will be called first from the classes involved in single inheritance from object of derived class? ( Base class | Derived Class | Both at the same time) Base class
Which is the correct syntax of inheritance? class derived_classname : access base_classname{ /*define class body*/ };
What is it called where child object gets killed if parent object is killed? ( Aggregation | Composition | Association | Encapsulation ) Composition
Which concept of the four pillars is achieved by combining methods and attribute into a class? Encapsulation
`this` keyword can be passed as an argument in the method call. True
`this` - It can be used to access class variables and methods. True
Encapsulation has poor control of class attributes and methods False
Which among the following should be encapsulated? ( Data which is prone to change in the near future | Data prone to change in long terms | Data which belongs to some other class | Data which is intended to be changed ) (1)
Members which are not intended to be inherited are declared as ________________ Private
Encapsulation means "open to all" and indicates that the internal workings of an object are entirely visible to the outside world. False
Which of the these is the functionality of 'Encapsulation'? ( Binds together code and data | Using single interface for gen. class of actions | reduce complexity | all of the mentioned) Binds together code and data
Which one of these is a data type? (bit | gold | fold | byte) byte
Standard Methods – implement the business rules for which the application is being developed False
Construct – a method that is automatically executed when an object is created. This method is used to initialize the attributes. False
Using encapsulation data security is ___________ (Ensured to some extent | Very low | Purely ensured | Not ensured) Ensured to some extent
There is an Increased security of data with Encapsulation True
How can you make the private members inheritable? It can be done both by making the visibility mode public or protected
If a base class is inherited in protected access mode then which among the following is true? Public and Protected members of base class becomes protected members of derived class
Which among the following is correct for a hierarchical inheritance? One base class can be derived into other two derived classes or more
Which concept will result in derived class with more features (consider maximum 3 classes)? Multiple Inheritance
Created by: user-1931754
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards