Hey there, We are Blossom Themes! We are trying to provide you the new way to look and use the blogger templates. Our designers are working hard and pushing the boundaries of possibilities to widen the horizon of the regular templates and provide high quality blogger templates to all hardworking bloggers!
Given the interface, which is the best way to create to anonymous class for this interface?
public interface Fruits { void taste(); }
Choose from the given below options:
a) Fruits fruits = new Fruits () {
public void taste() { System.out.println("Taste is good..."); } };
b)
FruitsImpl fruits = new Fruits () {
public void taste() { System.out.println("Taste is good..."); } };
c)
class FruitsImpl implements Fruits {
public void taste() { System.out.println("Taste is good..."); } }
Q30 of 32
Which of the following is true with respect to StringBuilder in Java?
(Choose 2 options)
StringBuilder is non-synchronized, not thread safe
StringBuilder is synchronized, thread safe
StringBuilder is less efficient
StringBuilder is more efficient
Q31 of 32
Which is the correct way of comparing the contents of the below strings?
String firstString = "String";
StringBuilder secondString = new StringBuilder("String");
firstString.contains(secondString)
Q32 of 32
Which of the following statements are correct advantages of an immutable class?
Immutable objects are simple
Immutable classes are thread-safe, they require no synchronization
both are correct
No Sql
1.databases is used for internet scale applications requiring
large data sets, cost effective storage, and fast time to solution?
Key values store
2.Cassandra NoSQL database provides
high availablility and partition tollerance but strictly
consistent
3."An application usually retrieves data by key or ID
value and there is no need for complex queries. Further, there is no need for
search capabilities beyond key lookup"
Key values store
4.HBase belongs to which category of NoSQL databases?
Column family stores
5.databases is suitable for sparsely populated tables that are
too big for relational database and also related data is grouped together?
Column family stores
6.You need to ensure you meet product delivery timelines while
dispatching items ordered by customers across various locations. Which one of
the following databases is most suitable for the given scenario?
Graph based databases
7.For representing financial details related to policy holders,
which database is most suitable?
Relational databases
8.Which
category of NoSQL databases possess the following characteristics?
·Support a nested structure
·Support querying by multiple fields
·Support indexing on multiple fields
·Support sorting operations
Document oriented databases
9.What is incorrect with respect to characteristics of NoSQL
databases?
Most of the NoSQL databases do not have integrated caching
facilities
10.Non Scalable : does not apply to NoSQL?
11.The eCommerce system tracks its customer's browsing patterns.
For the given scenario, select the best suited data model, consistency level
and read/write load
Graph, available,weight heavy.
12.Assume the checkout scenario in an online shopping site.
Which of the CAP properties does this require the most?
Consistency
and Partition tolerance
13.Consider
the scenario where customer session data is managed by the eCommerce system. It
has the following requirements:
·faster read and write
·need not be durable and
·need to maintain session data for millions of online customers
14.Which
category of databases is the best suitable one?
key value
15.Map the
following scenarios to the best suited database type.
A)
Log Analysis
B) Catalog Display
C) Banking Transaction
D) User preferences
E) Shortest path for product delivery