Search Header Logo
Computer Science

Computer Science

Assessment

Presentation

Computers

Professional Development

Hard

Created by

rajalakshmi S

Used 5+ times

FREE Resource

1 Slide • 5 Questions

1

Computer Science

Slide image

2

Multiple Choice

Which of the following is not a type of class?

1

Abstract Class

2

Final Class

3

Start Class

4

String Class

3

Multiple Choice

Which is most appropriate comment on following class definition?

class student

{ int a;

public: float a;

}

1

Error : same variable name can’t be used twice

2

Error : Public must come first

3

Error : data types are different for same variable

4

It is correct

4

Multiple Choice

class with main() can be inherited

1

True

2

False

5

Multiple Choice

Which of the following is incorrect?

1

class student{ }s;

2

class student{ }; student s;

3

class student{ }s[];

4

class student{ }; student s[5];

6

Multiple Choice

If a local class is defined in a function, which of the following is true for an object of that class?

1

Object is accessible outside the function

2

Object can be declared inside any other function

3

Object can be used to call other class members

4

Object can be used/accessed/declared locally in that function

Computer Science

Slide image

Show answer

Auto Play

Slide 1 / 6

SLIDE