Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ questions QUESTION 9 Function getchar reads a character from the standard in

ID: 3917987 • Letter: C

Question

C++ questions

QUESTION 9 Function getchar reads a character from the standard input and returns the character as an integer rue O False QUESTION 10 Arrays are data structures consisting of related data items of different types. True O False QUESTION 11 What is the difference between a while and a do-while statement? O In the while statement, the loop-continuation condition is tested at the beginning of the loop before the body of the loop is performed. The do-while statement tests the loop-continuation condition after the loop body is performed. O In the while statement, the loop-continuation condition is tested after the loop body is performed, then continues until-1 is typed in. The do-while statement tests the loop-continuation condition at the In the while statement, the loop-continuation condition is tested before the loop body is performed, then continues until -1 is typed in. The do-vhile statement tests the loop-continuation condition at the end of O In the while statement, the loop-continuation condition is tested after the loop body is performed. The do-while statement tests the loop-continuation condition at the beginning of the loop before the body of the beginning of the loop and then terminates after a certain count is reached the loop and then terminates after a certain count is reached. loop is performed. QUESTION 12 Using the functions in the C standard library helps make programs more O standard O viable O portable O generic

Explanation / Answer

Question 9

Ans) True

Explanation:-

-------------------------------------------------------------------

Question 10

Ans) False

Explanation:-

                         int arr[]; //Means array of integers

-----------------------------------------------------

Question 11

Ans) Option 1--> In the while statement,the loop condition is tested at the beginning of the loop before the body of the loop executed.The do-while check the loop condition after the loop execution

Explanation:-

                   while(i<5){//Body of the loop}

                               Here, body of the loop executed whether the i value less than 5.So each time i value check before execution.

            do{\Body of the loop}while(i<5);

                Here,first loop execoted ones then check while condition,if it satisfy then loop continue.

----------------------------------------------------------

Question 12

Ans)Generic

Explanation:-

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote