COSC 1436 Programming Fundamentals - Final Exam Review Questions And Answers 100% Verified.
COSC 1436 Programming Fundamentals - Final Exam Review Questions And Answers 100% Verified. Character arrays are also called this? - answerc-strings The following array is a ___-dimensional array int list[2][5][6][6] - answer4 The [] is called this and it allows access to an individual character in a string - answerarray subscript The predefined mathematical function for the square root of a number is this - answersqrt(x) These alter the flow of control. They can be used to exit early from a loop or skip the remainder of a switch structure. - answerBreak and continue The following for loop: for (index = 0; index < 10; index++) cout << sales[index] << " "; Is used for _______ data - answeroutputting (stored in an array) The following loops is for _____ data for (index = 0; index <10; index++) cin >> sales[index]; - answerinputting This is a sequence of 0 or more characters. The first character is in position 0 and the second is in position 1. - answerstring These are identifiers that are declared outside of every function definition. - answerglobal identifiers The second for loop in the following example is called a _____ for-loop (it is inside another loop) for (i = 1; i <=5; i++) { for (j = 1; j <= i; j++) cout << "*"; cout << endl; } - answernested This function takes the power of x to y. - answerpow(x,y) The ______ sort rearranges an array list by selecting
Written for
- Institution
- Cosc
- Course
- Cosc
Document information
- Uploaded on
- June 24, 2024
- Number of pages
- 2
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cosc 1436 programming fundamentals final exam re
Also available in package deal