stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Ruby Webinar (EN) Flashcards | StudBud
Explore
/
Ruby Webinar (EN)
What is the output for this following code?
What is “!” for?
Ruby Webinar (EN)
10 terms
·
StudBud Administration
·
25 plays
Let's recap your Ruby knowledge!
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What is “!” for?
not
minimum
maximum
surprise
2
What is the output for this following code?
false
nil
I don't know
true
3
What is NOT the learning outcome of Intro Module?
Learn the basics of programming
Get a initial understanding of web development
Be more confident in learning web development
Become a developer
4
What's the example of hash in a array
We can't create a hash in a array
[{age:18, name: "Damien"}, {age:19, name: "Eng Soon"}]
{number: [1,2,3], name: ["Arisa", "Bank", "Colin"]}
[[1,2,3],["GH", "Jasmine", "MX"]]
5
What is the output of this?
5
"a+b"
0
10
6
What is the difference between puts and print?
puts does not add a newline after executing
puts adds a newline after executing
there is no difference between puts and print
print adds a newline after executing
7
What is a variable?
All above is correct
Variables are just numbers
Variables are operators
Variables are used to store information
8
What's the example of boolean?
[boolean, boolean]
3.14159
"boolean"
true
9
What’s true about float and integer?
an integer must be a positive number
an integer has a decimal point
a float must be a positive number
a float has a decimal point
10
Who is Student Success team?
your teacher
your customer service rep
your logistic coordinator
your learning partner and coach