Answer: D Spelling and grammar errors
Explanation: took the test :P
Answer: D
Explanation:
It's really simple because that's just the main thing you need to worry about!
For objects to communicate effectively with one another, each must know how the other object is implemented.
This statement is not entirely true. In fact, one of the principles of object-oriented programming is encapsulation, which means that an object should hide its internal implementation details from other objects, and only provide a well-defined interface for other objects to interact with it.
What does Encapsulation means?
Encapsulation promotes loose coupling between objects, which means that objects can communicate with each other without having to know the implementation details of each other. Instead, objects can interact through the public methods and properties that are provided by the other object's interface.
By using encapsulation, objects can be designed and implemented independently, and can be changed without affecting other objects that use them. This promotes flexibility and modularity in software design.
Therefore, it is not necessary for objects to know the implementation details of each other in order to communicate effectively. Instead, objects should communicate through well-defined interfaces, using messages and method calls, without exposing their internal state and implementation details.
To learn more about Encapsulation, visit: https://brainly.com/question/29036367
#SPJ1
CHALLENGE ACTIVITY
7.2.2: While loops.
A while loop reads integers from input. Write an expression that executes the while loop until a negative integer is read from input.
Ex: If the input is 20 19 -11, then the output is:
Integer is 20
Integer is 19
Exit
import java.util.Scanner;
public class IntegerReader {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int in;
in = scnr.nextInt();
while (/* Your code goes here */) {
System.out.println("Integer is " + in);
in = scnr.nextInt();
}
System.out.println("Exit");
}
}
Answer:
import java.util.Scanner;
public class IntegerReader {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int in;
in = scnr.nextInt();
while (in >= 0) {
System.out.println("Integer is " + in);
in = scnr.nextInt();
}
System.out.println("Exit");
}
}
Consider the table MARKS and write SQL query for the question i to ii and find output for the given SQL query from iii to v.
i) Display the details of all Science students.
ii) Display the details of students who are in class 12 sorted by stipend.
iii) SELECT SNAME, GRADE FROM MARKS WHERE SNAME LIKE “%S” ;
iv) UPDATE MARKS SET STIPEND = STIPEND*2 WHEREGRADE = ‘C’ ;
SELECT STREAM, AVGMARK FROM MARKS WHERE AVGMARK > 90;
Answer:
i) Display the details of all Science students.
SELECT * FROM MARKS WHERE STREAM = 'Science';
ii) Display the details of students who are in class 12 sorted by stipend.
SELECT * FROM MARKS WHERE CLASS = 12 ORDER BY STIPEND;
iii) This query selects only the SNAME and GRADE columns from the MARKS table where the SNAME ends with the letter "S". The "%" sign is used as a wildcard to match any characters before the letter "S". This will display the SNAME and GRADE of all students whose names end with "S".
iv)This query updates the STIPEND column of the MARKS table, doubling the stipend value for all the students who have a GRADE of 'C'.
v)This query selects only the STREAM and AVGMARK columns from the MARKS table where the AVGMARK is greater than 90. This will display the STREAM and AVGMARK of all the students who have an average mark greater than 90.
Explanation:
Assuming the MARKS table has columns: ID, SNAME, CLASS, STREAM, STIPEND, GRADE, and AVGMARK, the SQL queries for the given questions are:
i) Display the details of all Science students.
SELECT * FROM MARKS WHERE STREAM = 'Science';
This query selects all the columns from the MARKS table where the STREAM is Science. This will display the details of all Science students.
ii) Display the details of students who are in class 12 sorted by stipend.
SELECT * FROM MARKS WHERE CLASS = 12 ORDER BY STIPEND;
This query selects all the columns from the MARKS table where the CLASS is 12 and sorts the result by STIPEND in ascending order. This will display the details of students who are in class 12 sorted by stipend.
iii) SELECT SNAME, GRADE FROM MARKS WHERE SNAME LIKE “%S” ;
This query selects only the SNAME and GRADE columns from the MARKS table where the SNAME ends with the letter "S". The "%" sign is used as a wildcard to match any characters before the letter "S". This will display the SNAME and GRADE of all students whose names end with "S".
Lesson 2: Installing System Devices
35.0 % Complete
Ö This Question: 07
A technician is installing new RAM in a company's workstations. The IT supervisor wants all computers
to have ECC RAM to ensure high levels of reliability. Which features are not associated with ECC RAM?
(Select all that apply)
A. The motherboard and the CPU must support ECC operation for it to be enabled.
B. Most motherboards support either UDIMMS or RDIMMs, but not both.
C. If a motherboard supports UDIMM, you can use both types synchronously.
D. Mixing non-ECC UDIMMS and ECC UDIMMS will work with each other.
Generally, if the motherboard supports ECC DDR3 memory, than one can substitute non-ECC DDR3 memory, but it's not recommended.
Why is it not recommended?ECC (Error Correcting Code) memory is designed to detect and correct errors that occur during data storage or transmission, which can help improve system stability and reliability.
In the summary, while it has been technically possible to substitute non-ECC DDR3 memory for ECC DDR3 memory on a motherboard that supports ECC memory, it's generally not recommended for optimal system stability and reliability.
Therefore, Non-ECC memory, on the other hand, does not have this capability and may be more prone to errors.
Read more about DDR3 memory here:
brainly.com/question/30726056
#SPJ1