Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Two more mock questions

 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, folks, it IS time to be getting back to work toward the *real* exam.
Here are two little EJBQL questions.
The *real* exam will tell you how many answers are correct, but since we want to make things a little more challenging, we won't tell you.
================================
1) Which is a valid EJBQL query? (check all that apply, at least one is correct)
A) SELECT OBJECT(o)
FROM Order o
B) SELECT OBJECT(o)
FROM Order o
WHERE o < 100
C) SELECT o.order
FROM Customer customer
D) SELECT DISTINCT OBJECT(o)
FROM Order o
WHERE o.lineItems IS NOT EMPTY
E) SELECT c.customer
FROM Customer AS c
F) SELECT OBJECT(o)
FROM Customer AS foo, IN(foo.things)

=====================
2) Which statement (or statements) about EJBQL is correct? (check all that apply, at least one is correct)
A) The FROM clause is required
B) The WHERE clause is required
C) Duplicate values may be returned from an EJBQL query
D) You may define EJBQL for the implementation of your home business methods.
E) If a query is for a finder method, the result of the finder MUST be the bean's local interface.
Have fun,
Kathy
 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathy, these are my answers;
Q1.
A. Correct (easy)
B. Incorrect (comparing a domain to a number?)
C. Incorrect ("0" not mentioned in FROM clause)
D. Correct
E. Correct
F. Incorrect ("o" not mentioned in FROM clause).
Q2.
A. TRUE
B. FALSE (WHERE is optional).
C. TRUE
D. FALSE (unless you mean that home methods using EJBSelect counts).
E. FALSE (can be remote as well)
Regards,
Ray Gill - SCJP, SCWCD
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic