OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » C++ Quiz

Which parameter-passing method does not allow the function to modify the actual argument? 

Difficulty level
  • By value 
  • By reference 
  • By pointer 
  • By name
When parameters are passed by value, a copy of the argument is made for the function. Any modifications to this copy do not affect the original argument outside the function.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C++ Quiz
Quiz
Consider enum class in C++11 and above. Which of the following is a true statement about its functionality? 
Which of the following is a correct statement about friend functions in C++? 

Related Quiz

  • In what year was the C++17 standard released? 
  • The _______ keyword is used when we want to explicitly pass by reference but prevent the function from modifying the argument. 
  • In C++, _______ functions cannot be virtual. 
  • If a break statement is encountered in a nested loop, it will exit _______. 
  • What is the primary reason for using smart pointers over raw pointers in modern C++? 

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy