What does [] + [] evaluate to in JavaScript?

Warm-up 01.04.2025

Flashcard
•
Professional Development
•
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
2.
FLASHCARD QUESTION
Front
What does this Java snippet print? Options: true, false, NullPointerException, Compilation error
Back
false
3.
FLASHCARD QUESTION
Front
What is the result of 0.1 + 0.2 in JavaScript?
Back
0.30000000000000004
4.
FLASHCARD QUESTION
Front
What is the time complexity of the following code? Options: O(n), O(n / 2), O(log n), O(n^2)
Back
O(n)
5.
FLASHCARD QUESTION
Front
What is the time and memory complexity of the following code?
Back
time - O(n), mem -O(log n)
6.
FLASHCARD QUESTION
Front
What is the time complexity of a naïve recursive Fibonacci implementation?
Back
O(2^n)
7.
FLASHCARD QUESTION
Front
What is the main mistake in this classic binary search implementation?
Back
Integer overflow on mid = (l + r) / 2
Create a free account and access millions of resources
Similar Resources on Quizizz
3 questions
JavaScript Script Closure

Flashcard
•
8th Grade
10 questions
Guess the Word

Flashcard
•
Professional Development
10 questions
Name that food

Flashcard
•
3rd Grade
9 questions
Java Intro-1

Flashcard
•
University
10 questions
Coding 300: JavaScript/Python Vocab

Flashcard
•
7th - 8th Grade
10 questions
Java Script Pro

Flashcard
•
3rd Grade - University
9 questions
Java OOP

Flashcard
•
Professional Development
10 questions
Computer Science

Flashcard
•
7th Grade
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