Spring Boot/Spring Boot - Scheduling Sample Test,Sample questions

Question:
@Scheduled annotation is used to trigger the scheduler for a specific time period?

1.@Scheduled(cron = "0 * 9 * * ?")

2.@Scheduled(time= "0 * 9 * * ?")

3.@Scheduled(crontime = "0 * 9 * * ?")

4.None


Question:
@Scheduled(cron = "0 * 9 * * ?")

1.code to execute the task every minute starting at 9:00 AM and ending at 9:59 AM, every day.

2.code to execute the task every minute starting at 9:00 AM and ending at 10.00 AM, every day.

3.code to execute the task every 9 minute starting at 9:00 AM and ending at 9:59 AM, every day.

4.None


Question:
@Scheduled(fixedDelay = 1000, initialDelay = 1000)

1.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

2.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

3.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

4.None


Question:
@Scheduled(fixedRate = 1000)

1.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.

2.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.

3.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.

4.None


Question:
Fixed Delay supported in spring boot ?

1.true

2.false


Question:
Fixed Rate scheduler not supported in Spring boot .

1.true

2.false


Question:
Spring Boot provides a good support to write a scheduler on the Spring applications

1.true

2.false


Question:
To enable the scheduler for your application?

1.@EnableSpringBootScheduling

2.@EnableScheduling

3.@EnableSpringBootsScheduling

4.None


More MCQS

  1. Spring Boot Common Test
  2. Spring Boot - Bootstrapping
  3. Spring Boot AOP
  4. Spring Boot - Logging
  5. Spring Boot - Application Properties
  6. Spring Boot - RESTful Web Services
  7. Spring Boot - Exception Handling
  8. Spring Boot - Interceptor
  9. Spring Boot - Servlet Filter
  10. Spring Boot - Tomcat
  11. Spring Boot - File Handling
  12. Spring Boot - Service Components
  13. Spring Boot - Thymeleaf
  14. Spring Boot - CORS
  15. Spring Boot - Internationalization
  16. Spring Boot - Scheduling
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!