Go Pointers

Go Pointers

University

11 Qs

quiz-placeholder

Similar activities

TC-2V-Trifàsica

TC-2V-Trifàsica

University

10 Qs

techveorp_ict

techveorp_ict

University

15 Qs

C++ Knowledge Based Quiz I = IA

C++ Knowledge Based Quiz I = IA

University

15 Qs

Quiz Pra UTS Struktur Data - Radian Baratasena

Quiz Pra UTS Struktur Data - Radian Baratasena

University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Sec. 8: Scripting Basics

Sec. 8: Scripting Basics

University

10 Qs

Java Reserved Words

Java Reserved Words

University

10 Qs

Lourdes Amaranta Ayala Gracia

Lourdes Amaranta Ayala Gracia

8th Grade - University

10 Qs

Go Pointers

Go Pointers

Assessment

Quiz

Instructional Technology

University

Medium

Created by

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

Media Image

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

Media Image

what does the following Go code print?

10

The memory address of x

0

nil

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?