Homework Help Question & Answers
Please answer the following questions 1. What keyword is used to make a child class use…
Please answer the following questions
1. What keyword is used to make a child class use a parent class? a.) is a b.) extends c.) has a d.) inherits 2. Suppose you have the given code below. Scanner keyboard = new Scanner(System.in); What would be the correct way to scan in an integer value from the keyboard. a.) scan.nextInt() b.) scan.nextDouble() c.) scan.nextLine() d.) keyboard.nextInt() 3. True or False. Arrays use sequential blocks of memory while linked lists do not use sequential blocks of memory. This is why nodes in a linked list have next values. a.) True b.) False 4. What is the correct way to declare and initialize a variable in Java? a.) = ; b.) = ; c.) = ; d.) ; 5. Suppose you have an array of 10 integers called arr. What is the correct way to change the third value of the array to 3? a.) arr[2] = 3; b.) arr[3] = 3; c.) arr = 3; d.) none of the above 6. True or False. Java is a functional programming language. a.) True b.) False
Add a comment