All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Tutor
New
Search
Search
Sign In
Register
study help
computer science
oracle
Questions and Answers of
Oracle
How many rows of the following table contain an error? A. ZeroB. OneC. TwoD. ThreeE. Four Interface member Private method Default method Static method Abstract method Optional modifier(s)
What is the output of the following application?A. 8B. The code does not compile because AddNumbers is not a functional interface.C. The code does not compile because of line j1.D. The code does
Which of the following variables are always in scope for the entire program once defined?A. Package variablesB. Class variablesC. Instance variablesD. Local variables
What is the command to call one constructor from another constructor in the same class?A. construct()B. parent()C. super()D. this()E. that()
Which of the following statements about no-argument constructors and inheritance are correct? (Choose two.)A. The compiler cannot insert a no-argument constructor into an abstract class.B. If a
What is the result of executing the Grasshopper program? A. The code prints hop once.B. The code prints hop twice.C. The first compiler error is on line p1.D. The first compiler error is on line
Fill in the blanks: ______________ allow Java to support multiple inheritance, and anonymous classes can ______________ of them.A. Abstract classes, extend at most oneB. Abstract classes, extend
What is the minimum number of lines that need to be removed to make this code compile? A. 1B. 2C. 3D. 4E. The code compiles as is. @Functional Interface public interface Play { public static
Which of the following are the best reasons for creating a private interface method?(Choose two.)A. Add backward compatibility to existing interfaces.B. Provide an implementation that a class
What is the result of executing the Sounds program? A. The code runs and prints baa!B. The Sheep class does not compile.C. The Sounds class does not compile.D. Neither class compiles. //
What is the output of the following application? A. 5B. 6C. 8D. The code does not compile. package stocks; public class Bond { } private static int price = 5; public boolean sell() { if (price
Given the following class declaration, what expression can be used to fill in the blank so that 88 is printed at
Which statements about static initializers are correct? (Choose three.)A. They cannot be used to create instances of the class they are contained in.B. They can assign a value to a static final
What is the output of the BlueCar program? A. 23451B. 12345C. 14523D. 13245E. The code does not compile.F. None of the above. package race; abstract class Car { static { System.out.print("1");
Given the following class declaration, which value cannot be inserted into the blank line that would allow the code to compile? A. CanineB. ListC. ObjectD. PetE. All of the above can be
Which statement about the following interface is correct? A. The code compiles.B. The code contains an invalid constant.C. The method buyPopcorn() does not compile.D. The method getDrink() does
Which methods compile? A. Just getNumRakes()B. Just getNumShovels()C. Both methodsD. Neither method private static int numShovels; private int numRakes; public int getNumShovels () { return
How many lines of the following class contain compilation errors? A. None.B. One.C. Two.D. Three.E. Four.F. The answer cannot be determined with the information given. 1: class Fly { 2: 3: 4:
How many of the classes in the figure can write code that references the sky() method? A. NoneB. OneC. TwoD. ThreeE. Four. com.color Red protected boolean light Blue void sky () com.light
What is the output of the following application? A. GiantRobot GiantRobotB. GiantRobot DinosaurRobotC. DinosaurRobot DinosaurRobotD. The code does not compile because of line y1.E. The code
What is the output of the HighSchool application? A. 10B. 20C. 4.0D. One line of the program does not compile.E. Two lines of the program do not compile.F. None of the above. package edu;
What is the output of the following application? A. Walking and running!B. Walking and jogging!C. Sprinting!D. The code does not compile.E. The code compiles but prints an exception at
What is true of these two interfaces? A. A concrete class can implement both, but must implement wriggle().B. A concrete class can implement both, but must not implement wriggle().C. A concrete
Which of these are functional interfaces? A. LionB. TigerC. Both Lion and TigerD. Neither is a functional interface.E. The code does not compile. interface } Lion { public void roar (); default
How many lines of the following class contain a compiler error? A. NoneB. OneC. TwoD. ThreeE. More than three. 1: public class Dragon { boolean scaly; 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
What is true of the following method? A. It is a correctly implemented accessor method.B. It is a correctly implemented mutator method.C. It is an incorrectly implemented accessor method.D. It
Which statement is true? A. You can always change a method signature from call (String[] arg) to call (String... arg) without causing a compiler error in the calling code. B. You can always change
What are two motivations for marking a class final? (Choose two.) A. Guarantee behavior of a classB. Allow the class to be extendedC. Improve securityD. Support polymorphismE. Improve
Which statement about the following interface is correct? A. The code compiles.B. The method enterAtmosphere() does not compile.C. The method getCircumference() does not compile.D. The method
Suppose you have the following code. Which of the images best represents the state of the references right before the end of the main() method, assuming garbage collection hasn’t run? A. Option
Fill in the blanks: ___________________ methods always have the same name but a different list of parameters, while ___________________ methods always have the same name and the same return
Which variable declaration is the first line not to compile? A. b3B. h2C. b4D. h3E. All of the lines compile. } public class Complex { class Building {} class House extends Building {} public
Which statement about a no-argument constructor is true?A. The Java compiler will always insert a default no-argument constructor if you do not define a no-argument constructor in your class.B. For
What is the output of the following application? A. Spoiled!B. Yummy!C. The application completes without printing anything.D. One line of this application fails to compile.E. Two lines of this
Which of the following statements about functional interfaces is true?A. It is possible to define a functional interface that returns two data types.B. It is possible to define a primitive
What is the result of executing the Tortoise program? A. init-hare-tortoiseB. init-hareC. The first line with a compiler error is line x1.D. The first line with a compiler error is line
How many lines of the following program do not compile? A. ZeroB. OneC. TwoD. ThreeE. More than three. interface Tool { void use(int fun); } abstract class Childcare { abstract void use (int
What is the result of executing the Sounds program? A. The code runs and prints baa!.B. The Sheep class does not compile.C. The Sounds class does not compile.D. Neither class compiles. //
What is the best reason for marking an existing static method private within in an interface?A. It allows the method to be overridden in a subclass.B. It hides the secret implementation details
What is the output of the following application? A. 5B. 6C. 8D. The code does not compile. package jungle; public class RainForest extends Forest { public Rainforest (long treeCount) {
What is the result of compiling and executing the following class?A. redB. purpleC. blueD. It does not compile. package sports; public class Bicycle { } String color="red"; private void
Given that Short and Integer extend Number directly, what type can be used to fill in the blank in the following class to allow it to compile? A. ObjectB. IntegerC. ShortD. NumberE. None of the
Given the following enum declaration, how many lines contain compilation errors? A. ZeroB. OneC. TwoD. ThreeE. More than three public enum Proposition { TRUE (1) { String getNickName() { return
Which statements about abstract classes and methods are correct? (Choose three.) A. An abstract class can be extended by a final class. B. An abstract method can be overridden by a final
Which statements about Java classes are true? (Choose three.)A. A Java class file may include more than one package statement.B. A Java class file may include more than one import statement.C. A
What is the result of executing the HopCounter program?A. The code prints hop once.B. The code prints hop twice.C. The first compiler error is on line p1.D. The first compiler error is on line
Given the following class, which method signature could be successfully added to the class as an overloaded version of the findAverage() method? A. public Long findAverage(int sum)B. public Long
Which of the following is not an attribute common to both abstract classes and interfaces?A. They both can contain abstract methods.B. They both can contain public methods.C. They both can contain
Which of the following is a valid method name in Java? (Choose two.)A. Go_$Outside$2()B. have-Fun()C. new()D. 9enjoyTheWeather()E. $sprint()F. walk#()
Fill in the blank with the line of code that allows the program to compile and print 15 at runtime. A. Sport.play()B. Sport.super.play()C. Sport.Tennis.play()D. Tennis.Sport.super.play()E. The
Fill in the blanks: A functional interface must contain or inherit ______________ and may optionally include ______________.A. at least one abstract method, the @Override annotation.B. exactly one
Given the following two classes in the same package, what is the result of executing the Hug program? A. kitty - 5.0B. The Kitten class does not compile.C. The Hug class does not compile.D. The
What is the output of the following application? A. 2 10B. 5 10C. The code does not compile because of line n1.D. The code does not compile because of line n2.E. The code does not compile
Which expressions about enums used in switch statements are correct? (Choose two.) A. The name of the enum type must not be used in each case statement. B. A switch statement that takes a enum
What is the result of executing the Tortoise program? A. init-hare-tortoiseB. init-hareC. The first line with a compiler error is line x1.D. The first line with a compiler error is line
What is the result of executing the Sounds program? A. The code runs and prints baa!.B. The Sheep class does not compile.C. The Sounds class does not compile.D. Neither class compiles. //
What is the output of the Helicopter program? A. 5B. 10C. The code does not compile.D. The code compiles but produces a ClassCastException at runtime.E. None of the above. package flying; class
Which statements about the following Twins class are true? (Choose three.) A. The class fails to compile because of the write() method.B. The class fails to compile because of the publish()
Given the following program, what is the first line to fail to compile? A. Line 2B. Line 4C. Line 5D. Line 6E. Line 7F. All of the lines compile. 1: public class Electricity { 2: interface
What is the output of the following application? A. 2, 5B. 5, 10C. 2, 10D. The code does not compile because of the GetSet class declaration.E. The code does not compile for another reason.
Which of the following are true about the following code? (Choose two.) A. When you fill in both blanks with double, it prints 8.00.0B. When you fill in both blanks with double, it prints
How many Gems objects are eligible for garbage collection right before the end of the main() method? A. NoneB. OneC. TwoD. ThreeE. FourF. The code does not compile public class Gems { public
How many lines of the following program contain compilation errors? A. NoneB. OneC. TwoD. Three package sky; public class Stars { } private int inThe = 4; public void Stars () { super(); }
What is the output of the following application? A. 5B. The code does not compile due to an invalid cast.C. The code does not compile for a different reason.D. The code compiles but throws a
Which statement about the Elephant program is correct? A. It compiles and prints 6.B. The code does not compile because of line k1.C. The code does not compile because of line k2.D. The code
Which cloud computing model offers the most control of your environment?A. PaaS B. SaaS C. IaaS D. DBaaS
What infrastructure resource cannot be provisioned in OCI?A. NVMe storageB. NetworksC. CPU and RAMD. KVM switches
Which of the following statements is false?A. VM instances may be created based onavailable compute shapes.B. Block storage volumes can be added only tobare-metal machines.C. VM instances may share
What is the OCI term for a fault-tolerant datacenter?A. Availability zoneB. RegionC. Virtual cloud networkD. Availability domain
Which of the following statements is true?A. An availability domain is a collection ofregions.B. A region is a collection of availabilitydomains.C. An availability zone is a collection of regions.D.
Network performance is typically measured bywhich two metrics? (Choose two.)A. Bandwidth and latencyB. Round Trip Time and latencyC. Throughput and bandwidthD. Isolation and disaster recovery
Which of the following statements is false?A. Instances in one region can connect toinstances in another region.B. Availability domains in a region share powerand cooling.C. Each AD is self-contained
Choose four storage types available on OCI.A. Block volumes, object storage, archivestorage, SSDB. Block volumes, file storage, archive storage,SSDC. Block volumes, object storage, archivestorage,
A Load Balancing Router routes traffic to backendservers based on which backend set routingalgorithms?A. IP Hash, Weighted Round-RobinB. IP Hash, Weighted Round-Robin, LeastConnectionsC. Weighted
What is the unique, Oracle-assigned identifier forOracle Cloud Infrastructure resources known as?A. OCIDB. Tenant IDC. ACIDD. Cloud account name
Which IAM resources are global and span regions?A. Compartments B. Policies C. Compute instances D. DBAAS
Which policy verbs authorize groups to interact with resources with the highest level of permission?A. inspect B. read C. administer D. use
Which policy verbs authorize groups to interact with resources in order from lowest to highest level of permission?A. inspect, read, manage, use B. inspect, read, use, manage C. inspect, read,
Which is a capability of OCI users but not federated users?A. Can add API keys B. Can generate Auth tokens C. Can use a local password for console access D. Can generate customer secret keys
Which of the following statements is true?A. Region subscriptions occur at the AD level.B. Region subscriptions occur at the compartment level.C. Region subscriptions occur at the group level.D.
Instances are added to dynamic groups based on what rules?A. Policy statements B. Matching rules C. Compartment OCID and Auth token D. Inheritance
Matching rules that determine the inclusion or exclusion of instances in dynamic groups are based on one of more of the following?A. Compartment OCID, Instance OCID, tags B. Instance shape, system
Where is a federated user in your tenancy authenticated?A. OCI IAM service B. IDCS C. The identity provider where it was created D. Active Directory Federation Services
Which resource is not an availability domain–level resource?A. Compute instance B. Subnet C. Block volume D. Object storage
What is the name given to the location where the master copy of OCI IAM resources are located?A. Home region B. Primary IAM site C. Identity provider D. Tenancy
Choose the CIDR range with the largest IP address block?A. 192.168.1.1/30 B. 192.168.1.1/255 C. 10.1.0.0/16 D. 255.255.255.0
Which statement regarding the scope of a VCN is true?A. A VCN is a regional construct.B. A VCN is a global construct.C. A VCN is an AD-level construct.D. All of the above.
Which of the following network components facilitates access to the Internet?A. Local peering gateway B. Service gateway C. Internet gateway D. Remote peering connection
Which set of prerequisites must be met before an instance can be accessed from the Internet?Choose one or more options.A. The instance must be in a public subnet.B. The instance must be in a private
Which of the following statements is true?A. BGP is supported with IPSec VPN but not FastConnect when connecting external networks to your VCN.B. BGP is supported with FastConnect but not IPSec VPN
How many IP addresses does a private load balancer require?A. One B. Two C. Three D. Four
A VCN is defined with the CIDR 192.168.0.0/30.How many IP addresses from this CIDR block are reserved by OCI?A. 1 B. 2 C. 3 D. 4
A VCN is defined with the CIDR 192.168.0.0/30.How many IP addresses from this CIDR block are available for host addresses?A. 1 B. 30 C. 192 D. 168
Which protocols are supported by OCI load balancers?A. HTTP/1.0, HTTP/1.1, HTTP/2.0 B. HTTP/1.0, HTTP/1.1, HTTP/2.0, TCP C. WebSocket, HTTP/1.0, HTTP/1.1, HTTP/2.0, TCP D. WebSocks, TCP, HTTPS E.
Which are three load balancer traffic distribution policies?A. Weighted Round Robin, IP Hash, Coin Toss B. Weighted Round Robin, IP Hash, Random C. Round Robin, Coin Toss, Most Connections D.
List the compute instance types available for provisioning on OCI.A. Virtual machines B. Paravirtualized machines C. Bare-metal machines D. OVM, KVM, and Hyper-V
Which of the following compute images may be used to create a compute instance?A. Oracle and Platform images B. Boot volumes and Partner images C. Paravirtualized machines D. OVA format images
A boot volume has been detached from an instance in AD1. Which of the following statements are true?A. A compute instance can be created in AD2 using the boot volume in AD1.B. A compute instance
A compute instance is not starting up. You suspect a problem with the boot volume. Which of the following options may be used to troubleshoot this further?A. There is nothing further to do. The
Which of the following statements is true?A. Instances in an instance pool may be provisioned across multiple VCNs.B. Instances in an instance pool may be provisioned across multiple regions.C.
Showing 900 - 1000
of 1045
1
2
3
4
5
6
7
8
9
10
11