3. Scientific Programming

Performance Optimization — Quiz

Test your understanding of performance optimization with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

Which profiling technique instruments function entry and exit to measure exact execution time but may introduce significant overhead?

Question 2

In a program where 10\\% of execution is inherently serial, what is the theoretical maximum speedup on 16 parallel cores according to Amdahl's Law?

Question 3

Which code pattern in a loop commonly prevents the compiler from auto-vectorizing?

Question 4

What is false sharing in multithreaded programs?

Question 5

When is explicit software prefetching most beneficial for performance optimization?