java basics

Quiz
•
Computers, Special Education
•
KG - 1st Grade
•
Medium
Christian Dräger
Used 15+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Java?
echo("Hello World");
System.out.println("Hello World");
print("Hello World");
console.log("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java is short for "JavaScript".
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Java code?
/* This is a comment
# This is a comment
// This is a comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to create a variable that should store text?
String
myString
string
char
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
num x = 5
float x = 5;
x = 5;
int x = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
byte x = 2.8f
x = 2.8f;
float x = 2.8f;
int x = 2.8f;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to find the length of a string?
len()
getSize()
length()
getLength()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz PBO pra UAS

Quiz
•
1st Grade
20 questions
CHAPTER: 11 AND 12

Quiz
•
12th Grade
24 questions
java

Quiz
•
University
30 questions
Java Lab

Quiz
•
University
21 questions
quiz 2nd/3rd year

Quiz
•
University
20 questions
Computer Science: Chapter 1 Test Review

Quiz
•
9th - 12th Grade
24 questions
Java Programming

Quiz
•
KG - University
24 questions
Unit4_Servlets_Exam1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Disney Characters

Quiz
•
KG
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade