Unit 14 Test - UNIT14TEST 1. a(TRUE/FALSE) b(TRUE/FALSE) predefineddatatype(int,float bool,etc c(TRUE/FALSE)Youhavetode

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIT 14 TEST 1. Answer the following questions with short answers. a. (TRUE/FALSE) There is no set limit to the number of objects of a given class in a program. b. (TRUE/FALSE) You can use vector to create a vector of any C++ predefined data type (int, float,  bool, etc.). c. (TRUE/FALSE) You have to declare the size of the vector when you declare the variable. d. What is the difference between a class and an object? e. How would you declare a vector of integers with the variable name 'Grades'? a) True. b) True. c) False. Size of the vector is not fixed, you can easily add and remove numbers.  d) Class is an user-defined data type, and object is a specific instance of a class denoted by a variable  name. e) vector<int> Grades; 2. Just like we did for the Account class, outline the state (i.e. variables) and  useful methods for a class StudentRecord which the registrar's office might 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/02/2011 for the course ME 205 taught by Professor Koen during the Spring '07 term at University of Texas at Austin.

Page1 / 4

Unit 14 Test - UNIT14TEST 1. a(TRUE/FALSE) b(TRUE/FALSE) predefineddatatype(int,float bool,etc c(TRUE/FALSE)Youhavetode

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online