Home
MCQS
Spring Boot MCQ Quiz Hub
Spring Boot - Scheduling
Choose a topic to test your knowledge and improve your Spring Boot skills
1. Spring Boot provides a good support to write a scheduler on the Spring applications
true
false
2. To enable the scheduler for your application?
@EnableSpringBootScheduling
@EnableScheduling
@EnableSpringBootsScheduling
None
3. @Scheduled annotation is used to trigger the scheduler for a specific time period?
@Scheduled(cron = "0 * 9 * * ?")
@Scheduled(time= "0 * 9 * * ?")
@Scheduled(crontime = "0 * 9 * * ?")
None
4. @Scheduled(cron = "0 * 9 * * ?")
code to execute the task every minute starting at 9:00 AM and ending at 9:59 AM, every day.
code to execute the task every minute starting at 9:00 AM and ending at 10.00 AM, every day.
code to execute the task every 9 minute starting at 9:00 AM and ending at 9:59 AM, every day.
None
5. Fixed Rate scheduler not supported in Spring boot .
true
false
6. @Scheduled(fixedRate = 1000)
Fixed Rate scheduler is used to execute the tasks at the specific time. It does not wait for the completion of previous task. The values is milliseconds.
Fixed Rate scheduler is used to execute the tasks at the specific time. It does not wait for the completion of previous task. The values is seconds.
Fixed Rate scheduler is used to execute the tasks at the specific time. It does wait for the completion of previous task. The values is milliseconds.
None
7. Fixed Delay supported in spring boot ?
true
false
8. @Scheduled(fixedDelay = 1000, initialDelay = 1000)
Fixed Delay scheduler is used to execute the tasks at a specific time. It should wait for the previous task completion. The values in seconds
Fixed Delay scheduler is used to execute the tasks at a specific time. It should not wait for the previous task completion. The values in seconds
Fixed Delay scheduler is used to execute the tasks at a specific time. It should not wait for the previous task completion. The values in milliseconds
None
Submit