Object Oriented Programming Lecture 1 Quiz
5 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the value of 'str' in the given code snippet?

  • 'H'
  • ' '
  • 2000
  • 6000 (correct)

What type of operator is used to obtain the address of a variable in C++?

  • & (correct)
  • *
  • ->
  • =

What is the term used for the value 'str' pointing to the memory location of a char?

  • Dynamic data
  • Reference type
  • Pointer constant (correct)
  • Integral data

When a variable is declared in C++, what is allocated for it at an unused memory location?

<p>A value of that type (D)</p> Signup and view all the answers

What is the output of 'cout << &y' in the given C++ code snippet?

<p>The memory address of 'y' (C)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser