LESSONNEW
Computer Science
rajalakshmi_sf_24782
29 minutes ago
Save
Copy and Edit
INSTRUCTOR-LED SESSION
Start a live lesson
ASYNCHRONOUS LEARNING
Assign homework
6 slides PreviewShow answers
  • Slide 1
    Report an issue

    Computer Science

    Body text
  • Question 2
    10 seconds
    Report an issue
    Q.

    Which of the following is not a type of class?

    answer choices

    Abstract Class

    Final Class

    Start Class

    String Class

  • Question 3
    20 seconds
    Report an issue
    Q.

    Which is most appropriate comment on following class definition?

    class student

    { int a;

    public: float a;

    }

    answer choices

    Error : same variable name can’t be used twice

    Error : Public must come first

    Error : data types are different for same variable

    It is correct

  • Question 4
    20 seconds
    Report an issue
    Q.

    class with main() can be inherited

    answer choices

    True

    False

  • Question 5
    20 seconds
    Report an issue
    Q.

    Which of the following is incorrect?

    answer choices

    class student{ }s;

    class student{ }; student s;

    class student{ }s[];

    class student{ }; student s[5];

  • Question 6
    20 seconds
    Report an issue
    Q.

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

    answer choices

    Object is accessible outside the function

    Object can be declared inside any other function

    Object can be used to call other class members

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

Report an issue
Why show ads?
Report Ad
Lessonsnew
Enter Code