1.arrayList[9] accesses the 10th object of an array of length 10
true
false
2. Arrays are the only data structure that can be accessed with [ ]; for example: orderedData[0]
true
false
3. In a maximum of three steps: how do you swap the contents between two variables of the same type? Pick the absolute best answer
A temp = x; x = y; y = temp
B x = x + y; y = x - y; x = x + y
C x = x + y; y = x - y; x = x - y
4. Placing a [-1] makes the array access its data in reverse
true
false
1.arrayList[9] accesses the 10th object of an array of length 10
true
since the array of zise n,the array indices starts from 0 to n-1
2. Arrays are the only data structure that can be accessed with [ ]; for example: orderedData[0]
true
we use this kind of notationn for array data structure
3. In a maximum of three steps: how do you swap the contents between two variables of the same type? Pick the absolute best answer
A temp = x; x = y; y = temp
Suppose we have two values x and y , and we need to swap them.So, first take a temporary variable temp. Store the value of x in temp.and then store the y value in x and finally the temp value in x. This will swap the contents of two varaibles
4. Placing a [-1] makes the array access its data in reverse
true
we can access the last element when we use a[-1]
1.arrayList[9] accesses the 10th object of an array of length 10 true false 2. Arrays are...
Question 2 [5 points) State if each of the below statements is True or False 1 2 3 The Compiler skips comments. A function can return a value of type array. An array index starts with 1. Pass by value is the default in CH, except when passing arrays as arguments to function The default storage class for local variables is static. A pointer provides an indirect means of accessing the value of a particular data item The logical operators...
this is true and false for C++
(1 point each) Circle T for true or F for false for the following questions. 1. T/F The Boolean expression b1 || b2 evaluates to true if either Boolean value (b1, b2) is true. T/F The code we write in C++ (e.g. code in file project1.cpp) is referred to as source code. 2. 3. T/F The statement float scores[3][3] creates 3 arrays, each containing 3 floating-point variables. T/F For loops work best when...
1). The result of Java expression 5*7>3*(5+2) && 3*5-4<6 is ____ a. 35>35&&9<6 b. true && false c. false d. False (2). You save text files containing Java language source code using the file extension___ a. .java b. .class c. .txt d. .src (3). Which of the following is not a primitive data type in the Java programming language? a. boolean b. byte c. int d. Point (4). Given the Java statement int[][] vari = new int[5][7]; the value...
visual basic help
DI Question 3 2 pts You may only bind an object to a control that the computer creates for you O True O False D | Question 4 2 pts The Do..Loop statement can be used to code both a pretest loop and a posttest loop. True False Question 5 2 pts You can prevent many unintentional errors from occurring in an application by declaring the variables using the maximum scope needed. True False 2 pts Question...
State true or false: (6 x 2 = 12 pts) Using -- with a reverse iterator moves it from the back toward the front of a list b) The body of a do-while loop is always executed at least once. c) If p points to the array element a[j], then p + i points to a[i+j]. d) Any number of pointer variables may point to the same object. In terms of both execution speed and memory usage usually iterative solutions...
True or False: Python programs require two or more modules. 1. 2. The keyword while means the same thing as While in Python. 3. In Python, _MyVar15 is a valid variable name. 4. To make your program more secure, use obscure variable names such as xz14dEE 5. Indenting code that should be executed when an if statement evaluates as true makes your program easier to read, but the indentation is not necessary. 6. A dictionary object contains zero or more...
Only 10 True or False questions. Please answer ALL questions. Thank you! 1) It is always the case that P(x) (profit), R(x) (revenue), and C(x) (costs) are best modeled by linear equations. 2) If you collect data on 2 variables x & y, and then you draw a scatter plot of the ordered pairs (x,y), the variables show positive correlation if the scatter plot decreases as you move from left to right. 3) To determine the break even point for...
These are my answere to the following questions: are they right? 1. B 2. T 3. T 4. T 5. F 6. T 7. A 8. D 9. E 10. B 11. B 12. A 13. A 14. D 15. C 16. D 17. T 18. C 19. T 20. T 21. T 22. A 23. T 24. D 25. B 26. A 27. A 28. A 29. T 30. C 31. D 32. A 33. T 34. F 35....
SHORT ANSWER QUESTIONS Part 1 Classes Abstraction: What is Abstraction in terms of representation? Specifically what choices does one make when creating a class that is an example of Abstraction? Encapsulation: What is encapsulation? What is information hiding? What does a public interface to a class consist of (not in the sense of actual java interfaces but what the client uses to manipulate objects of the class) What is an object of a class? What is the constructor? How do...
Objective: GUI Layout manager Download one of the sample GUI layout program. Use any GUI layout to add buttons to start each sort and display the System.nanoTime in common TextArea panel. The question is a bit confusing so i will try to simplify it. Using the GUI ( I made a unclick able one so you have to make it clickable), allow a user to sort the text file based on what they click on. example: if i click merge...