Julia - Quiz 1
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
TMU Hashmi
Used 4+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Who created Julia programming language?
Guido van Rossum
James Gosling
Jeff Bezanson, Stefan Karpinski, and Viral B. Shah
Brendan Eich
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the file extension for a Julia program?
.jl
.py
.java
.js
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the syntax for declaring a variable in Julia?
var x = 10
int x = 10
x = 10
declare x = 10
Answer explanation
In Julia, variables are declared by simply assigning a value to them, for example, “x = 10”.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the syntax for a while loop in Julia?
while x < 10 do
# code here
end
while x < 10 {
# code here
}
while x < 10:
# code here
while x < 10
# code here
end
Answer explanation
In Julia, a while loop is written as “while condition do … end”.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the syntax for a function in Julia?
function my_function(arg1, arg2)
# code here
end
def my_function(arg1, arg2):
# code here
void my_function(arg1, arg2) {
# code here
}
sub my_function(arg1, arg2) {
# code here
}
Answer explanation
In Julia, a function is written as “function function_name(arguments) … end”.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
x = 5
y = “Hello”
println(“$y, the value of x is $x.”)
$y, the value of x is 5.
Hello, the value of x is $x.
Hello, the value of x is 5.
$y, the value of x is $x.
Answer explanation
The code uses string interpolation to insert the values of the variables “x” and “y” into the string that is printed.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following Julia code?
x = 1
while x <= 10
println(x)
x += 1
end
1 3 5 7 9
1 2 3 4 5 6 7 8 9 10
10 9 8 7 6 5 4 3 2 1
No output
Answer explanation
The code uses a while loop to print the numbers from 1 to 10.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Round-1 Technical Aptitude
Quiz
•
11th Grade - Professi...
20 questions
La sintassi CSS
Quiz
•
9th Grade - Professio...
20 questions
DBMS-QUIZ
Quiz
•
Professional Development
20 questions
PC Troubleshooting
Quiz
•
Professional Development
20 questions
Pengenalan SIMDIG
Quiz
•
Professional Development
20 questions
U.T. 7: Configuración de Routers y Encaminamiento
Quiz
•
Professional Development
20 questions
MS OFFICE QUIZ 01
Quiz
•
Professional Development
20 questions
Technology
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
