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

Posted Date:-2020-12-16 21:57:13


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

Posted Date:-2020-12-16 21:59:36


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

Posted Date:-2020-12-16 22:07:48


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

Posted Date:-2020-12-16 22:03:00


Question:
Fixed Delay supported in spring boot ?

1.true

2.false

Posted Date:-2020-12-16 22:05:53


Question:
Fixed Rate scheduler not supported in Spring boot .

1.true

2.false

Posted Date:-2020-12-16 22:00:53


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

1.true

2.false

Posted Date:-2020-12-16 21:51:49


Question:
To enable the scheduler for your application?

1.@EnableSpringBootScheduling

2.@EnableScheduling

3.@EnableSpringBootsScheduling

4.None

Posted Date:-2020-12-16 21:53:50


More MCQS

  1. Spring Boot Common Test
  2. Spring Boot - Bootstrapping
  3. Spring Boot - Logging
  4. Spring Boot - Application Properties
  5. Spring Boot - RESTful Web Services
  6. Spring Boot - Exception Handling
  7. Spring Boot - Interceptor
  8. Spring Boot - File Handling
  9. Spring Boot - CORS
  10. Spring Boot - Internationalization
  11. 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!