Programming > EXAM > ITEC 1620 Introduction to Object Oriented Programming_York University _ Final Mock Test (All)
ITEC 1620 Introduction to Object Oriented Programming York University _ Final Mock Test Which one of these hardware components is considered non-volatile? a. Ram b. CPU c. Hard Disk Drive 1. How m ... any permutations for 8 bits? a. 256 b. 128 c. 64 d. 32 1. Is PASS a valid class name in terms of class naming rules? a. Yes b. No 1. Is 6Pass a valid identifier? a. True a. False 2. What conversion method is used here: int num = sum + num2; a. Promotion b. Assignment c. Casting 1. An accessor method is used to change attribute values. a. True b. False 1. A mutator method does not change the attribute value a. True b. False 1. What is a visibility modifier that only blocks non-package classes from accessing it? a. Protected b. Private c. Public 1. What type error is it if you mess up a calculation in the program. a. Compile-time error b. Run-time error c. Logical error 1. What class do we use to receive input? a. Scanner b. System c. Util 1. How many times will this counted loop iterate, for(int i=0; i<=5; i++) a. 2b. 3 c. 4 d. 5 e. 6 1. Which one of these data types is an object? a. boolean b. Character c. Int d. Double 1. What is the purpose of a Wrapper Class? a. Classes used to hold primitive data types in objects. b. Classes used to retrieve input data from user. c. Classes that contain methods & attributes. 1. What is used to instantiate objects? a. A mutator b. A constructor c. A method 1. Do you need to declare the size of an ArrayList? a. Yes b. No 1. What does the toString() method return ? a. The value of a variable b. Nothing c. returns the string representation of the object d. A string array 1. Is Java case sensitive? a. Yes b. No 1. What is used to define the state of an object? a. Variables b. Instance Data c. Attributes 1. Array size can only be changed when ? a. In a for loop b. In a if Statement c. In a Switch Statement d. Array size cannot be changed once declared 1. What index location is 4 at in an array with a starting value of 1 and end value of 10? The array is in order. a. index location 6b. index location 4 c. index location 2 d. index location 3 1. What is the data type of the value of an element in an empty array that has a declared size? [Show More]
Last updated: 2 years ago
Preview 1 out of 12 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Apr 18, 2023
Number of pages
12
Written in
All
This document has been written for:
Uploaded
Apr 18, 2023
Downloads
0
Views
62
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·