Computer Science MCQs

category-Computer Science MCQs-image

Computer Science MCQs for Test Preparation. These Computer Science MCQs are the most repeated MCQs and very important for all type of exams organized by FPSC, PPSC, KPSC, SPSC, BPSC, NTS, PTS, OTS, UTS, CTS, ITS and other testing agencies of Pakistan. Most important FPSC MCQs, PPSC MCQs, KPSC MCQs, SPSC MCQs, BPSC MCQs, NTS MCQs, PTS MCQs, OTS MCQs, UTS MCQs, CTS MCQs, ITS MCQs and other MCQs for test preparation in Pakistan.

(A) A void function’s header begins with the keyword void

(B) A value-returning function’s header begins with a data type, which represents the type of data the function will return
(C) Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement

(D) Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement

(E) Both void and value-returning functions can receive arguments

August 15, 2023