java basics

Quiz
•
Computers, Special Education
•
KG - 1st Grade
•
Medium
Christian Dräger
Used 14+ 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
Java, part I

Quiz
•
11th Grade - University
23 questions
AP CSA Unit One Review

Quiz
•
11th Grade
21 questions
Prog Web U3

Quiz
•
University
20 questions
JavaScript Basics CodeHS

Quiz
•
7th - 12th Grade
20 questions
JavaScript Quiz

Quiz
•
Professional Development
20 questions
Web Development Technical Skills

Quiz
•
Professional Development
20 questions
Generics

Quiz
•
University
20 questions
Java Coding Questions

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
PBIS Terrace View

Quiz
•
1st - 5th Grade
20 questions
Subject and predicate in sentences

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

Quiz
•
1st - 3rd Grade
9 questions
Good Citizenship and Responsibility

Interactive video
•
1st - 3rd Grade
20 questions
Number Words Challenge

Quiz
•
1st - 5th Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
7 questions
Science Safety

Quiz
•
1st - 2nd Grade
25 questions
Math Review

Quiz
•
1st Grade