question archive Multiple choice questions: Select one (1) correct answer for each of the following
Subject:Computer SciencePrice: Bought3
Multiple choice questions: Select one (1) correct answer for each of the following. Write down only the number of the question and, next to it, the letter of the correct answer.
Q.1.1 _________________include methods that can process primitive type values. (1) (a) Type?Data Class (b) Type?Inherited (c) Type?Wrapper Class (d) Type?Consumed Class
Q.1.2 A Definite Loop refers to: (1) (a) A loop without a named block of code (b) A loop with a named block of code (c) A loop that executes a specific number of times (d) A loop that does not execute a specific number of times
Q.1.3 The Character class in Java inherits from? (1) (a) java.lang.StringBuilder (b) java.lang.Object (c) Java.lang.Nullable (d) java.lang.Character
Q.1.4 Immutable refers to: (1) (a) Strings and other objects that cannot be changed. (b) Strings and other objects that can be changed. (c) Strings and other objects that cannot be imported (d) Strings and other objects that can be imported
Q.1.5 Which of following is a class for working with unchanging data composed of multiple characters? (1) (a) Character (b) String (c) Wrapper (d) Buffer
Q.1.6 When you type characters using the keyboard, they are temporarily stored in memory called? (1) (a) Random access memory; (b) Volatile memory; (c) Keyboard buffer; (d) System buffer.
Q.1.7 Encapsulation refers to: (1) (a) The enclosure of data and methods within an object; (b) Computer memory locations that may vary; (c) A program that is free from all errors; (d) Allowing the same word to be used in different situations.
Q.1.8 Arguments refer to: (1) (a) Devices that may be used without understanding it; (b) Data items sent to methods in a method call; (c) A methods return type; (d) Variables declared in a class outside of any method.
Q.1.9 Which of the following is a correct call to a method declared as: public static void display(char code) (1) (a) Void display(); (b) Void display("x"); (c) Display(x); b Display('x').
Q.1.10 Which of the following could be the last coded line of a method declared as: public static String getValue(String x)? (1) (a) Return; (b) Return 55; (c) Return '55'; (d) Return "55".