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
IF

Quiz
•
University
14 questions
Remote Terminal Management

Quiz
•
University
10 questions
C Basics - 1

Quiz
•
University
10 questions
Introducción a la programación

Quiz
•
University
11 questions
Javascript

Quiz
•
University
15 questions
Cryptography Chap-1

Quiz
•
9th Grade - Professio...
10 questions
Sec. 5: The Command Line

Quiz
•
University
10 questions
Java test

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade