Go Pointers

Go Pointers

University

11 Qs

quiz-placeholder

Similar activities

Programming practices - C programming

Programming practices - C programming

University

9 Qs

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

12th Grade - Professional Development

10 Qs

Software Development (review)

Software Development (review)

University

15 Qs

Quiz 1 - Clase 01 - PRE UNIVO 22

Quiz 1 - Clase 01 - PRE UNIVO 22

University

10 Qs

Smartphones and Apps Quiz

Smartphones and Apps Quiz

4th Grade - Professional Development

10 Qs

CIT In-Person Training Quiz

CIT In-Person Training Quiz

University

11 Qs

Python_Parcial

Python_Parcial

University

15 Qs

Web Apps 03 - MongoDB

Web Apps 03 - MongoDB

University

12 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?

Discover more resources for Instructional Technology