
Pointers
Authored by deepa dspuc
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1) Given int *ptr, x=50; which is the correct way to assign address of x variables to the pointer?
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) ::
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade