PrepIQ GSDC Certified Java Full Stack Developer CFSD Ultimate Exam, Exams of Technology

The PrepIQ GSDC Certified Java Full Stack Developer CFSD Ultimate Exam validates expertise in front-end and back-end web application development using Java technologies. Candidates gain practical knowledge in Java programming, Spring frameworks, REST APIs, database integration, UI development, cloud deployment, and DevOps practices. The certification prepares professionals for full-stack software development and enterprise application engineering roles.

Typology: Exams

2025/2026

Available from 06/15/2026

shilpi-jain-2
shilpi-jain-2 🇮🇳

1

(1)

25K documents

1 / 69

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PrepIQ GSDC Certified Java Full Stack
Developer CFSD Ultimate Exam
**Question 1. Which HTML5 element is most appropriate for marking up the main
navigation links of a website?**
A) `<section>`
B) `<nav>`
C) `<aside>`
D) `<footer>`
Answer: B
Explanation: The `<nav>` element semantically represents a block of navigation
links.
**Question 2. In CSS3, which property is used to create a flexible container that can
align its children horizontally or vertically?**
A) `display: block`
B) `display: inline`
C) `display: flex`
D) `display: grid`
Answer: C
Explanation: `display: flex` enables Flexbox layout, allowing flexible alignment of
child items.
**Question 3. Which of the following media query conditions applies to screens with
a width of 768 pixels or less?**
A) `@media (min-width: 768px)`
B) `@media (max-width: 768px)`
C) `@media (width: 768px)`
D) `@media (orientation: portrait)`
Answer: B
Explanation: `max-width` targets viewports up to the specified width.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45

Partial preview of the text

Download PrepIQ GSDC Certified Java Full Stack Developer CFSD Ultimate Exam and more Exams Technology in PDF only on Docsity!

Developer CFSD Ultimate Exam

Question 1. Which HTML5 element is most appropriate for marking up the main navigation links of a website? A) B) C) D) Answer: B Explanation: The `` element semantically represents a block of navigation links. Question 2. In CSS3, which property is used to create a flexible container that can align its children horizontally or vertically? A) display: block B) display: inline C) display: flex D) display: grid Answer: C Explanation: display: flex enables Flexbox layout, allowing flexible alignment of child items. Question 3. Which of the following media query conditions applies to screens with a width of 768 pixels or less? A) @media (min-width: 768px) B) @media (max-width: 768px) C) @media (width: 768px) D) @media (orientation: portrait) Answer: B Explanation: max-width targets viewports up to the specified width.

Developer CFSD Ultimate Exam

Question 4. In JavaScript ES6, what does the arrow function syntax () =&gt; {} NOT inherit from its surrounding scope? A) this binding B) arguments object C) super keyword D) All of the above Answer: B Explanation: Arrow functions do not have their own arguments object; they inherit this and super. Question 5. Which Promise method is used to execute a callback regardless of whether the Promise was fulfilled or rejected? A) then() B) catch() C) finally() D) await Answer: C Explanation: finally() runs after the Promise settles, irrespective of outcome. Question 6. In React, which hook replaces the need for componentDidMount in a functional component? A) useState B) useEffect C) useContext D) useReducer Answer: B Explanation: useEffect with an empty dependency array runs once after the component mounts.

Developer CFSD Ultimate Exam

A) Class Loader B) Interpreter C) Just-In-Time (JIT) Compiler D) Garbage Collector Answer: C Explanation: The JIT compiler compiles bytecode to native code for performance. Question 11. Which memory area in Java stores primitive local variables and object references? A) Heap B) Stack C) Method Area D) PermGen Answer: B Explanation: The stack holds method frames, including primitive locals and references. Question 12. What is the primary purpose of the try-with-resources statement in Java? A) To catch multiple exception types in one block B) To automatically close resources that implement AutoCloseable C) To simplify lambda expressions D) To perform type casting safely Answer: B Explanation: try-with-resources ensures that resources are closed automatically. Question 13. Which of the following best describes polymorphism in Java? A) A class can have multiple constructors B) An object can take many forms, such as via method overriding or overloading

Developer CFSD Ultimate Exam

C) Data hiding through private fields D) Using interfaces to define constants Answer: B Explanation: Polymorphism allows a single interface to represent different underlying forms. Question 14. Which collection interface guarantees insertion order and allows duplicate elements? A) Set B) List C) Queue D) Map Answer: B Explanation: List maintains insertion order and permits duplicates. Question 15. Which method in the Java Stream API is a terminal operation that returns a List? A) map() B) filter() C) collect(Collectors.toList()) D) sorted() Answer: C Explanation: collect(Collectors.toList()) gathers stream elements into a List. Question 16. In Java concurrency, which class provides a thread-safe, mutable integer that can be atomically incremented? A) Integer B) AtomicInteger C) Long

Developer CFSD Ultimate Exam

Answer: B Explanation: @Component is a generic stereotype for component scanning. Question 20. What is the default scope of a Spring bean defined with @Component? A) prototype B) request C) singleton D) session Answer: C Explanation: By default, Spring beans are singletons within the container. Question 21. Which Spring AOP concept allows you to execute code before and after a method invocation? A) Pointcut B) Advice C) Join point D) Aspect Answer: B Explanation: Advice defines the action taken at a join point (e.g., before/after). Question 22. In Spring Boot, which starter dependency would you add to enable JPA and Hibernate support? A) spring-boot-starter-web B) spring-boot-starter-data-jpa C) spring-boot-starter-security D) spring-boot-starter-actuator Answer: B Explanation: spring-boot-starter-data-jpa brings in Spring Data JPA and Hibernate.

Developer CFSD Ultimate Exam

Question 23. Which annotation is used to expose a Spring MVC controller method as a REST endpoint that returns JSON? A) @Controller B) @RestController C) @ResponseBody D) @RequestMapping Answer: B Explanation: @RestController combines @Controller and @ResponseBody to produce JSON. Question 24. How would you map a method to handle HTTP GET requests for the URL pattern /users/{id}? A) @PostMapping("/users/{id}") B) @GetMapping("/users/{id}") C) @RequestMapping(value="/users/{id}", method=POST) D) @DeleteMapping("/users/{id}") Answer: B Explanation: @GetMapping maps GET requests to the specified path. Question 25. Which Spring Security component is primarily responsible for validating a JWT and setting the authentication in the security context? A) UserDetailsService B) JwtAuthenticationFilter C) PasswordEncoder D) AccessDecisionManager Answer: B Explanation: A custom filter extracts and validates the JWT, then populates the security context.

Developer CFSD Ultimate Exam

A) READ UNCOMMITTED

B) READ COMMITTED

C) REPEATABLE READ

D) SERIALIZABLE

Answer: B Explanation: READ COMMITTED avoids dirty reads; non-repeatable reads may still occur. Question 30. Which JPA annotation defines a many-to-many relationship between Student and Course entities? A) @OneToMany B) @ManyToOne C) @ManyToMany D) @OneToOne Answer: C Explanation: @ManyToMany maps a bidirectional many-to-many association. Question 31. When using Spring Data JPA, what does the method name findByLastNameContaining(String keyword) automatically translate to? A) A native SQL query using LIKE '%keyword%' B) A JPQL query using WHERE e.lastName = ?1 C) A JPQL query using WHERE e.lastName LIKE %?1% D) No query; it throws an exception Answer: C Explanation: Containing maps to LIKE %keyword% in JPQL. Question 32. Which fetch type should be used for a collection that is rarely accessed to improve performance? A) EAGER

Developer CFSD Ultimate Exam

B) LAZY

C) FETCH

D) IMMEDIATE

Answer: B Explanation: LAZY defers loading until the collection is accessed. Question 33. In Git, which command creates a new branch named feature/login and switches to it in one step? A) git branch feature/login B) git checkout -b feature/login C) git merge feature/login D) git pull feature/login Answer: B Explanation: git checkout -b creates and checks out the new branch. Question 34. When a merge conflict occurs, which Git command shows the files with conflicts? A) git status B) git diff C) git log D) git stash Answer: A Explanation: git status lists unmerged (conflicted) files. Question 35. Which JUnit 5 annotation is used to indicate that a method should be executed before each test case? A) @BeforeAll B) @BeforeEach C) @AfterEach

Developer CFSD Ultimate Exam

Answer: C Explanation: testImplementation adds dependencies to the test classpath. Question 39. Which Dockerfile instruction copies the compiled JAR file into the container image? A) RUN B) COPY C) ADD D) ENTRYPOINT Answer: B Explanation: COPY transfers files from the build context into the image. Question 40. In a CI/CD pipeline, which stage typically runs unit tests after the code is built? A) Deploy B) Build C) Test D) Release Answer: C Explanation: The Test stage executes unit (and possibly integration) tests. Question 41. Which HTML5 element is used to embed a video file with native controls? A) B) C) D) Answer: C Explanation: `` provides video playback with optional controls.

Developer CFSD Ultimate Exam

Question 42. Which CSS property defines the space between an element’s border and its content? A) margin B) padding C) border-spacing D) gap Answer: B Explanation: padding creates inner spacing inside the border. Question 43. Which Flexbox property aligns children along the cross axis (vertical axis in a row layout)? A) justify-content B) align-items C) flex-direction D) order Answer: B Explanation: align-items controls cross-axis alignment. Question 44. In CSS Grid, what does the grid-template-columns: repeat(3, 1fr); declaration do? A) Creates three columns each taking an equal fraction of the remaining space B) Sets three fixed-width columns of 1 pixel C) Generates three rows instead of columns D) Repeats the same column definition three times but only creates one column Answer: A Explanation: repeat(3, 1fr) defines three equal-width columns.

Developer CFSD Ultimate Exam

A) Input/Output bindings B) Services with providedIn root C) Template reference variables D) Host listeners Answer: B Explanation: A singleton service injected via providedIn: 'root' enables shared state. Question 49. In Vue, what does the computed property differ from a watch property? A) computed is synchronous, watch is asynchronous B) computed caches its result based on dependencies, watch runs a side-effect on change C) computed cannot depend on other data, watch can D) computed is only for DOM manipulation, watch is for API calls Answer: B Explanation: computed values are cached; watch observes changes to trigger callbacks. Question 50. Which HTTP status code indicates that the request was well-formed but the server refuses to authorize it? A) 401 Unauthorized B) 403 Forbidden C) 404 Not Found D) 500 Internal Server Error Answer: B Explanation: 403 means the client is authenticated but lacks permission. Question 51. In Java, which keyword is used to prevent a class from being subclassed?

Developer CFSD Ultimate Exam

A) static B) final C) abstract D) sealed Answer: B Explanation: final prohibits inheritance. Question 52. Which of the following is true about the volatile keyword in Java? A) It guarantees atomicity of compound actions B) It forces a variable to be stored in the stack C) It ensures visibility of changes across threads D) It can be applied only to methods Answer: C Explanation: volatile ensures that reads/writes go directly to main memory, providing visibility. Question 53. Which Java collection implementation provides O(1) average time complexity for get and put operations? A) ArrayList B) LinkedList C) HashMap D) TreeSet Answer: C Explanation: HashMap uses hashing for constant-time access on average. Question 54. Which method of java.util.Optional returns the contained value if present, otherwise throws NoSuchElementException? A) orElseThrow() B) get()

Developer CFSD Ultimate Exam

Answer: C Explanation: /actuator/health reports the application’s health status. Question 58. Which annotation enables method-level security using Spring Security’s pre-authorization expressions? A) @EnableGlobalMethodSecurity(prePostEnabled = true) B) @EnableWebSecurity C) @Secured D) @RolesAllowed Answer: A Explanation: Setting prePostEnabled allows @PreAuthorize and @PostAuthorize. Question 59. In JPA, which annotation marks a field as the primary key of an entity? A) @Id B) @PrimaryKey C) @Key D) @GeneratedValue Answer: A Explanation: @Id designates the primary key; @GeneratedValue can control its generation. Question 60. Which isolation level in PostgreSQL guarantees that a transaction sees a snapshot of the database as of the start of the transaction? A) READ COMMITTED B) REPEATABLE READ C) SERIALIZABLE D) READ UNCOMMITTED Answer: B

Developer CFSD Ultimate Exam

Explanation: REPEATABLE READ provides a consistent snapshot throughout the transaction. Question 61. Which SQL function returns the number of rows in a result set? A) COUNT(*) B) SUM() C) MAX() D) AVG() Answer: A Explanation: COUNT(*) tallies rows regardless of column values. Question 62. What is the purpose of a foreign key constraint in a relational database? A) To enforce uniqueness of a column B) To index the table automatically C) To ensure referential integrity between tables D) To store binary large objects Answer: C Explanation: Foreign keys guarantee that referenced values exist in the parent table. Question 63. In Spring Data JPA, which keyword in a method name triggers a LIKE %value% query? A) Containing B) StartsWith C) EndsWith D) Like Answer: A Explanation: Containing translates to a %value% pattern.