SAP HYBRIS COMMERCE MCQ


Hello friends if you are looking for SAP HYBRIS COMMERCE Multiple choice questions | SAP HYBRIS COMMERCE MCQ with Answers | SAP HYBRIS COMMERCE Objective type questions | SAP HYBRIS COMMERCE Questions with Answers here you will get the all details.

1.How many extensions are generated for ‘ant extgen command ?

  1. 1
  2. 2
  3. 7
  4. 0

Ans – 0

2.Dynamic attributes are to be stored in database

Ans – false

3.Which of the following configuration overrides all other properties?

  1. platform/advanced.properties
  2. platform/project.properties
  3. /project.properties
  4. config/local.properties

Ans – 3

4.Why do you need to execute setantenv.sh or aetantenv.bat before calling the build planform ?

  1. To configure JAVA-HOME
  2. To configure PLATFORM_HOME
  3. To configure ANT_HOME
  4. To configure GRADLE_HOME

Ans – 4

5. Deployment tog is always required for many-to many relationship

  1. True
  2. False

Ans – 0

6.We can initialize Hybris System using backoffice.

  1. True
  2. False

Ans -false

7.What is the default database used in SAP Hybrid Commerce ?

  1. mySQL
  2. Oracle
  3. hsqldb
  4. PostgreSQL

Ans – 2


8.The list of extensions included in the ant bulid is defined in

  1. platform/extensions.xml
  2. config/localextensions.xml
  3. /extensions.xml
  4. platform/localextensions.xml

Ans – 1

9.Classification attributes data is saved in the same table as data modeling attributes.

Ans – False

10.The list of extensions included in the ant bulid is define in

  1. platform/extensions.xml
  2. config/localextensions.xml
  3. /extensions.xml
  4. platform/localextensions.xml

Ans – 1

11. <COL style/”width: 276pt; “width =”368”> 
Given the date modeling snippet 
<itemtype code = “Training” extends / “Product” generate=”_” autocreate =”” > 
</itemType/> 
Considering above item is being created for the first time fill up the blanks with 
appropriate options.

0.   true false
1.   false false
2.   false true
3.   true true

Ans - 3

12.How to activate backoffice application orchestrator ?

  1. Press F1
  2. Press F2
  3. Press F3
  4. Press F4

Ans – 3

13.ImpEX uses files of typpe

  1. pdf
  2. txt
  3. .csv
  4. png

Ans – 2

14.Which of the following steps needs to be executed to generate java model classes after
adding new ‘itemtype’ in -items.xml ?

  1. ant bulid
  2. ant all
  3. ant updatesystem
  4. ant deeply

Ans – 1

15.Given items.xml types

  1. itemtypes
    2.enumtypes
  2. relationships
  3. atomictypes
  4. maptypes
  5. collections
    Please identify the correct order in -items.xml.

Ans – 4,6,2,5,3,1

16.Which of the following statements is true regarding the use of inheritance in the hybrids
itemType definations?

  1. You cannot specify a deployment, the hybris type system definition always create
    a single table for the entire hierarchy
  2. If you specify a deployment for your type, you will get one table which contains
    only the attributes defined on your type
  3. You can specify a deployment, but the hybris type system definition always create
    one table for each item type in the hierarchy
  4. If you specify a deployment for your type, you will get one table which contains
    all of the attributes for your type and its ancestors

Ans – 2

17. Given ‘many-to-many’ relationship b/w ‘Book’ and ‘Author’ item type which of the 
following code successfully defines the relationship ?
0.   <relation code=”Book2AuthorRelation” generate=”true” localized=”false”> 
<deployment table =”BookAuthor” typecode=”123” /> 
<sourceElement type =”Book” qualifier=”books” cardinality=”many” /> 
<target>Element type=”User” qualifier=”authors” cardinality=”many” /> 
</relation>
1.   <relation code=”Book2AuthorRelation” generate=”true” localized=”false”> 
<deployment table =”BookAuthor” typecode=”12345” /> 
<sourceElement type =”Book” qualifier=”books” cardinality=”one” /> 
<target>Element type=”User” qualifier=”authors” cardinality=”many” /> 
</relation>
2.   <relation code=”Book2AuthorRelation” generate=”true” localized=”false”> 
<deployment table =”BookAuthor” typecode=”12345” /> 
<sourceElement type =”Book” qualifier=”books” cardinality=”many” /> 
<target>Element type=”User” qualifier=”authors” cardinality=”many” /> 
</relation>
3.   <relation code=”Book2AuthorRelation” generate=”true” localized=”false”> 
<deployment table =”BookAuthor” typecode=”12345” /><sourceElement type =”Book” qualifier=”books” cardinality=”one” /> 
<target>Element type=”User” qualifier=”authors” cardinality=”one” /> 
</relation>

Ans - 2

18. Given ‘enumtype’ <enumtype genarate=”true” code=”ColorEnum” autocreate=”true” 
dynamic=”true”> <value code = “BLUE” /> <value code = “GREEN” /> <value code = 
“ORANGE” /> <value code = “RED” /> <value code = “YELLOW” /> <enumtype> 
How to use this type while defining an attribute ‘color’ in items.xml?
0.   <attribute name =”color” type =”ColorEnum1”> 
<modifiers optional=”false” />
<personistance type=”property” /> <attribute>
1.   <attribute name =”color” type =”color”> 
<modifiers optional=”false” />
<personistance type=”property” /> <attribute>
2.   <attribute name =”color” type =”ColorEnum”> 
<modifiers optional=”false” /> 
<personistance type=”property” /> <attribute>
3.   <attribute name =”color” type =”java.lang.Enum”> 
<modifiers optional=”false” /> 
<personistance type=”property” /> <attribute>
Ans =3

19. Which of the following statement is false ?
0.   Models represents a “snapshot” of date from the database
1.   Models are live representation of data from the database
2.   When modifying a model, you must explicitly save it back using ModelService
3.   Model have no attachment to database and representation is not live

Ans = 1

1.  Which object is used to create session object in hibernate ? 
0.   Session
1.   Session factory
2.   Configuration
3.   Transacion
Ans - 1

2.  Which tag is used for setter injection in beans configuration file ? 
0.   constructor-arg
1.   setter
2.   property
3.   ref

Ans - 2


3.  Class CurrentAccount is derived from below Account class Which of the following is the 
correct syntax for CurretAccount constructor?
public class Account { 
int accNo;
public Account(int accNo, double balance) { 
super(); 
this.accNo =accNo; 
this.balance = balance; 
} }
0.   public CurrentAccount() { 
super();
}
1.   public CurrentAccount(int accNo, double balance) { 
this.accNo = accNo; 
this.balance = balance; 
}
2.   public CurrentAccount(){ super(accNo,balance); 
}
3.   public CurrentAccount(int accNo, double balance){ 
super(accNo, balance); 
}

Ans - 2

4.  What is the correct syntax for annotation wiring ? 
0.   <annotation-context: config /> to bean configuration
1.   <annotation-config /> to bean configuration.
2.   <annotation-context-config /> to bean configuration
3.   <context: annotation-config /> to bean configuration.
Ans - 3


5.  class Account{ 
private int accontid;
//getters and setters for prooperties 
}
class Employee{ 
private int empid; 
pravate Account account; 
//getters and setters for properties //default constructor //parameterized constructor 
}
Which amongst the following is correct bean defination ? 
0.   <bean id=”account” class=”Account”> 
<property name=”accountId” value=”123”/> 
</bean> 
<bean id=”employee” class=”Employee”> 
<property name=”empId” value=”10001”/> 
<property name=”account” value=”account”/> 
</bean>
1.   <bean id=”account” class=”Account”>
<property name=”accountId” value=”123”/> 
</bean>
<bean id=”employee” class=”Employee”> 
<property name=”empId” value=”10001”/> 
<property name=”account” ref=”account”/> </bean> 
<bean class=”Account” id=”account”> 
<property name =”accountId"

Ans - 1


6.  Give following servelet mapping in web.xml 
<servlet> 
<servelet-name>tast</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
<servlet> 
<servlet-mapping> <servlet-name>test<servlet-name> <url-pattern> 
</url-pattern> <servlet-mapping>
which of the following file would be loaded by default ? 
0.   test.xml
1.   test-config.xml
2.   test-servlet.xml
3.   test-cgf.xml

Ans - 2


7.  class Employee{}
class Manager extends Employee { 
}
Which of the following statements is valid ?
0.   Employee has a Manager
1.   Manager has a Employee
2.   Employee is a Manager
3.   Manager is a Employee
Ans - 3

8.  Which of the following annotation does not ensure a bean would be created in Spring 
container ?
0.   @Autowierd
1.   @Controller
2.   @Service
3.   @Repository
Ans - 0

9.  Which of the following is configuration file in hiberate ? 
0.   hibernate-config.xml
1.   hibernate.xml
2.   hibernate-cfg.xml
3.   All of the above
Ans - 2

10. @Autowired annotation ensures that a been would be created in the spring container 
0.   true
1.   false
Ans - 1

11. class MinimumBalanceExpetion extends Exception{ 
}
Which type of exception is MinimumBalanceException class? 
0.   Checked Exception
1.   Unchecked Exception2.   Runtime exception
3.   Error
Ans - 0

12. What is Apache Tomcat ? 
0.   A build Tool
1.   A Programming Language
2.   A Web Server
3.   ORM framework
Ans - 2

13. Which of the following declaration would give compilation error? 
0.   List<String> list = new ArrayList<>();
1.   List<String> list = new LinkedList<>();
2.   List<String> list = new List<>();
3.   Stack<String> stack = new Stack<>();
Ans - 2

14. How to use <ref> in Spring framework ? 
0.   <ref> is used with bean id
1.   <ref> is used with string values
2.   Answer Choice 3
3.   Answer Choice 4
Ans - 0

15. Which of the following is configuration file of maven ? 
0.   build.xml
1.   maven.xml
2.   pom.xml
3.   Non of the Above
Ans - 2


16. Which of the following implementation class is known for removing duplicates from a 
given collection?
0.Vector<E>
1. Stack<E>
2. LinkedList<E>
3. HashSet<E>
Ans - 3

17. Which amongst the following is not a valid @Autowired usage? 
Ans : option 4


Leave a Reply

Your email address will not be published. Required fields are marked *