Skip to content
VUBuddy

CS201P Lab 5

Introduction to Programming (Practical) PDF 1.3 MBUpdated 23 Oct 2026
Quiz CS201P Lab 5 PDF 1.3 MB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 1.3 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.3 MB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 10. Download the file for all 10 pages.

Cs201p(lab 5)

If you find any mistake please correct:

Which of the following option gives the [value] stored at the address pointed to by the pointer “ptr”?

*ptr

1) In C++, the precise way to declare a pointer is.

Ans) Int *ptr;

2) What will be the output of the following code?

int main(){ char str[] = " Hello worlld"; cout <<str[4]; return 0;

Answer: o

3) In c++, what is correct syntax for accessing the fifth element of an array?

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.