Which of the following statements is true?
Go Lang

Quiz
•
Computers
•
1st - 5th Grade
•
Easy

Martin de Haij
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Intro to IF statements

Quiz
•
KG - University
6 questions
Структура программы в Паскаль

Quiz
•
2nd - 5th Grade
15 questions
Паскаль

Quiz
•
5th Grade
7 questions
Topic 4: Let’s Switch It ON and OFF

Quiz
•
5th - 6th Grade
8 questions
Ввод и вывод данных

Quiz
•
1st - 2nd Grade
11 questions
Chapter1.1

Quiz
•
1st - 5th Grade
10 questions
java-control structures-vlits

Quiz
•
1st Grade
10 questions
Introduction to Arrays

Quiz
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
15 questions
Character Analysis

Quiz
•
4th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
15 questions
Multiplication Facts

Quiz
•
4th Grade