Go Pointers

Quiz
•
Instructional Technology
•
University
•
Medium
M Severiche
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's a pointer in Go?
A function that returns a variable
A variable that stores a value
A type of loop in Go
A variable that is used to store the memory address of another variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol denotes a pointer?
*
#
&
@
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a pointer?
var p *int
var p int
var *p string
var p &int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pointers store memory addresses
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does & operator do?
to get the size of a variable
to get the type of a variable
to get the address of a variable in Go
to get the value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator dereferences a pointer?
&
#
*
@
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what does the following Go code print?
10
The memory address of x
0
nil
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
POSTMAN Quizz

Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia

Quiz
•
8th Grade - University
10 questions
Fundamentos de Programación

Quiz
•
University
10 questions
measurement instrumentation

Quiz
•
University
10 questions
22AD003

Quiz
•
University
15 questions
PROGRAMMING II MIDTERM EXAM PART 1

Quiz
•
University
10 questions
Lambda Expressions_v1.0

Quiz
•
University
11 questions
Python Operators

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade