Go Pointers

Go Pointers

University

11 Qs

quiz-placeholder

Similar activities

Sec. 9: Processes and Process Data

Sec. 9: Processes and Process Data

University

10 Qs

Java Script Pro

Java Script Pro

3rd Grade - University

12 Qs

QUIZ - JAVASCRIPT OFICIAL

QUIZ - JAVASCRIPT OFICIAL

University

10 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

[Python] Variables, Data Types, and Operators

[Python] Variables, Data Types, and Operators

University

11 Qs

PHP BASIC

PHP BASIC

University

10 Qs

GUIA TECNOLOGIA 2

GUIA TECNOLOGIA 2

8th Grade - University

15 Qs

[MLforDS] Quiz1

[MLforDS] Quiz1

University

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