CSE 1321 Test 2 Study Guide with Complete Solutions
CSE 1321 Test 2 Study Guide with Complete Solutions complex data types combinations of or extensions to primitive data types supported by PROGRAMMING LANGUAGES, OS and DBMS? Types of Complex Data String, Classes, Arrays, Objects (T/F) Logical operators are evaluated before comparison/relation operators False (T/F) An Array must be sorted for a Binary Search to work correctly True (T/F) Literals are values that are entered directly into code True (T/F)Assuming we have initialized an integer array of size 5, the following is a valid line of code: array =12; False (T/F) In programming ! is considered a binary, logical operator False Common escape sequences Escape sequence r = crriage return n newline t tab ' single quote " double quote backslash (T/F) An array can only hold variables of the same data type True The time complexity for the bubble sort algorithm O(n^2) This special input value is used to allow a user to end a loop Sentinel (T/F) Assuming we have initialized an integer array of size 5, the following is a valid line of code: array[4] = 12; True The time complexity for the selection sort algorithm O(n^2) (T/F) Assuming we have initialized on integer array of size 5, the following is a valid line of code: array[5]=12; False (T/F) A Linear Search is always more efficient than a Binary Search False (T/F) FOR loops are indeterminate loops False Consider the expression: value = 30, Which of the following is equivalent to this expression? value 30 OR value == 30 (T/F) An IF statement does not need to have an else clause True Logical NOT only works on one operand
Written for
- Institution
- CSE 1321
- Course
- CSE 1321
Document information
- Uploaded on
- May 6, 2024
- Number of pages
- 20
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cse 1321 test 2 study guide with complete solutio
Also available in package deal