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

Document Content and Description Below

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 Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of ITEC 1620 Introduction to Object Oriented Programming_York University _ Final Mock Test document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$9.50

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

62
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 18, 2023

Number of pages

12

Written in

All

Seller


Profile illustration for PAPERS UNLIMITED™
PAPERS UNLIMITED™

Member since 4 years

509 Documents Sold

Reviews Received
55
20
8
2
8
Additional information

This document has been written for:

Uploaded

Apr 18, 2023

Downloads

 0

Views

 62

Document Keyword Tags

More From PAPERS UNLIMITED™

View all PAPERS UNLIMITED™'s documents »

Recommended For You

Get more on EXAM »

$9.50
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·