1) Given int *ptr, x=50; which is the correct way to assign address of x variables to the pointer?
Pointers

Quiz
•
Professional Development
•
•
Medium
deepa dspuc
Used 3+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) Ptr=x;
b) ptr=*x;
c) x=ptr;
d) ptr=&x;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2) Which unary operator returns the value of the variable located at the address specified by its operand?
a) Indirection(*) operator
b) address of (&) operator
c) ++ operator
d) --operator
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3) Which one of the following operators can be applied to the pointer variables?
a) division
b) multiplication
c) increment
d) None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4) A pointer to the current object is called
a) This pointer
b) Array of pointer
c) Array of object
d) None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5) Which one of the following is unsupported C++ expression with respect to pointer ptr ?
a) ptr+80
b) ptr++
c) ptr-100
d) ptr * 100
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6) Which one of the following is valid C++ expression with respect to pointer ptr1 and ptr2 ?
a) ptr1 +ptr2
b) ptr1 * ptr2
c) ptr1 + 5
d) ptr1 / 8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7) Which operator is called reference operator
a) *
b) &
c) #
d) ::
Create a free account and access millions of resources
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Professional Development
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade