I believe the answer is B
Answer:
The C language code is a class called Test that accepts an array, duplicates it, reinitializes the first array to the first two items of the previous array, and loops through the array to print both items.
Explanation:
public class Test{
public static void main(String args[]){
int[] x={1,2,3,4}; //here declare array x with 1 2 3 4
int[] y=x; //here copy the x array into y array
x=new int[2]; //here reintilized the array size which is 2
for(int i=0;i<.length;i++){ //here now array length is 2 it iterates 2 times
System.out.print(x[i]+" ");
}
}
Answer:
false true
Explanation:
In the code snippet, two string objects are created in java with the value Java.
The print method first checks the condition s1==s2 and outputs false, This is so because the operator == which is used for equality in other primitive data types like ints cannot be applied to the String data type. In the second part of the print function, the equals function s1.equals(s2) is used and it prints true since the two string are equal
Answer:
c. Norms.
Explanation:
When Elena noticed her friend getting uncomfortable when she kisses him on the cheeks as a form of greeting she was violating his norms.
Norms are something that is standard or typical.
In USA there they not used to kiss on the cheeks to greet their friends there would be some other norm of greeting someone.
UDP = connectionless vs. TCP is connection oriented.