JY CHEN - Ask Anything, Learn Everything. Logo

Questions in computers-and-technology

[Free] Q04. What will be the output of the following pseudo code? 1. Integer j 2. Integer arr[4] = {3, 2, 3, 1} 3. arr[2] = (arr[0] + 2) & arr[1] 4. for (each j from 5 to 6) 5. arr[j mod 3] = (arr[1] + arr[2]) + arr[0] 6. arr[j mod 4] = (arr[2] + arr[3]) & arr[2] 7. End for 8. Print arr[2] + arr[3] Note: mod finds the remainder after the division of one number by another. For example, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1. &: bitwise AND - The bitwise AND operator (&) compares each bit of the first operand to the corresponding bit of the second operand. If both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0. Options: A. 8 B. 14 C. 5 D. 0

[Free] In the context of Oracle Cloud Infrastructure (OCI) Compute service, which statement about instance configurations and instance pools is true? - You can delete an instance configuration if it is associated with an instance pool. - An instance pool can have multiple instance configurations associated with it. - You cannot reuse the same instance configuration for multiple instance pools. - You can only delete an instance configuration if it is not associated with any instance pool.

[Free] The process of breaking a large task into smaller parts is known as A. continuous design B. feature-oriented design C. top-down design D. bottom-up design

[Free] How do you create a watermark in Word? A. Use the Layout tab B. Use the Insert tab C. Use the Design tab and select Watermark D. Use the Home tab

[Free] Question 3: A smartphone has 64 GiB of internal storage. (a) Write an expression to calculate how many kilobytes (KiB) are in 64 GiB. (b) If each audio book takes 256 MiB, how many audio books can be saved on the phone (assuming the entire space is used)?

[Free] What feature allows you to create a summary report in Excel? A. Charts B. Data Validation C. Data Consolidation D. Pivot Tables

[Free] How do you create a dynamic summary of data in Excel? A. Use Charts B. Use Conditional Formatting C. Use Data Validation D. Use Pivot Tables

[Free] What is the keyboard shortcut to save a workbook in Excel? A. Ctrl + S B. Ctrl + C C. Ctrl + P D. Ctrl + V

[Free] Choose the default bean scope for any Spring Bean. (A) Singleton (B) Request (C) Global (D) Prototype (E) Session

[Free] Refer to the code given below: ```java public class Student { public static void borrowBook(Integer isbn) { System.out.println("Student borrowed the book with "+isbn); } } ``` Identify the correct option to create a method reference to static method inside the Student class. [Assume Java 8 is used] A. BiFunction transaction = Student::borrowBook; B. BiConsumer transaction = Student::borrowBook; C. Consumer transaction = Student::borrowBook; D. Predicate transaction = Student::borrowBook;