Concept:A function is continuous at x=a if its left-hand limit, right-hand limit, and value at x=a are equal.Explanation:At x=π, the function is defined by kx+1, so f(π)=kπ+1.Left-hand limit: limx→π−(kx+1)=kπ+1.Right-hand limit: limx→π+cosx=cosπ=−1.For continuity, LHL = RHL.So, kπ+1=−1.kπ=−2.k=−π2.Answer:−π2