Go Lang

Go Lang

1st - 5th Grade

10 Qs

quiz-placeholder

Similar activities

E-Waste

E-Waste

3rd Grade

10 Qs

Google Apps

Google Apps

4th - 12th Grade

10 Qs

KSK2013 -9 Setup report

KSK2013 -9 Setup report

KG - University

15 Qs

Grade5Review

Grade5Review

5th Grade

10 Qs

TYPES OF COMPUTER

TYPES OF COMPUTER

3rd - 4th Grade

10 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Keyboard

Keyboard

2nd Grade

10 Qs

Grade 3 Computer Review

Grade 3 Computer Review

3rd Grade

10 Qs

Go Lang

Go Lang

Assessment

Quiz

Computers

1st - 5th Grade

Practice Problem

Easy

Created by

Martin de Haij

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true?

Go is a procedural language

Go is a compile once, run anywhere kind of language with garbage collection

Go is an object-oriented language without garbage collection

Go is an object-oriented language with garbage collection

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How should you declare variable "a" to be an exported (public) variable?

var a

public var a

var A

{export}var a

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value for a variable of the string type?

"" (the empty string)

nill

null

The string type has no default value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following loop statements is available in Go?

do ... while

while

for

Only "while" and "for" are available

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Statements about Type Conversion:

1) Type conversions convert value of one type to another

2) Expression T(v) converts value v to the type T, e.g. float64(i)

3) In Go assignments between items of different type require an explicit conversion

Which of the answers is true?

1 + 2 are true, 3 is false

1+3 are true, 2 is false

1 is false, 2+3 are true

1+2+3 are true

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following program that is executed on a OS X (runtime.GOOS = "darwin") computer?

Apple

Apple, Microsoft

Apple, Microsoft, Too many to count, darwin unknown manufacurer

The program gives a compilation error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the final Println?

This gives a compilation error

The last fmt.Println prints 0

The last fmt.Println prints 9

The last fmt.Println prints 10

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?