stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Intro to Programming Concepts - CHRISTMAS Edition (some questions are generated using ChatGPT) Flashcards | StudBud
Explore
/
Intro to Programming Concepts - CHRISTMAS Edition (some questions are generated using ChatGPT)
Intro to Programming Concepts - CHRISTMAS Edition (some questions are generated using ChatGPT)
27 terms
·
StudBud Administration
·
43 plays
An introduction to #programmingLanguages using #Java
Flashcards
27 cards
F
Practice quiz
P
Host live
L
Questions
27
Answers
1
IDE stands for
Integrated Development Enviroment
Iterated Deep Environment
Iterated Development Environment
Wish you a Merry Christmas
2
What is the output of this code?
Hi World!
Hello World!
Hell0 W0rld!
Merry Christmas
3
What is the output of this code?
Banana
Banana Cherry
Apple
Cherry
4
What is the output of the following code?
1
1 3 4 5
1 3 4
1 2 3 4
5
What is the output of this code?
JavaPythonC++Ruby
Merry Christmas
Java
JPCR
6
Which of the following is a valid identifier?
$name
name 3
Happy New Year
void
7
If I need to enter two students how should I answer the second question?
Y
Merry Christmas
y
Yes
8
Which button do you need to press on NetBeans to debug a project?
C
B
A
D
9
Identify the return type and parameters of this method signature.
Returns an int and as parameters takes an array of int and another int
Doesn't return anything and takes an array of integers as parameters
Returns an int and as parameters it takes an array of int and two int
Returns an array of int and takes an int as a parameter
10
What is the output of this code?
Merry Christmas
ho ho ho!
HO HO HO!
hO hO hO!
11
What is the output of this code?
3
4
2
1
12
This is how to declare an instance of a Scanner
True
False
13
In programming, what are the three types of control structures?
repetitions, loop, and iteration
selection, sequence, and decision
sequence, selection, and iteration
sequence, selection, and if
14
What is the output of this loop?
2 4
2
3
1 3 5
15
Which of the following software are IDEs? (mark any correct answer)
NetBeans
Netflix
TextPad
Microsoft Visual Studio
16
A programming language... (mark any correct answer)
must be formally-defined
must be unambiguous
has to have Christmas Decorations
must be ambiguous
17
The syntax of a programming language... (mark any correct answer)
helps to define whether a piece of code is valid or invalid
can be changed by any programmer
are comments that you put in your code like Merry Christmas
is made up by a set of rules which needs to be followed
18
What is the output of this code?
4 2 1 (underneath each other)
4 3 2 1 (underneath each other)
3 2 1 (underneath each other)
4 3 2 (underneath each other)
19
What is the output of this code?
10 9 8 7 6 5 4 3 2 1 (printed under each other)
2 4 6 8 10 (printed under each other)
10 8 6 4 2 (printed under each other)
10 8 6 4 2 0 (printed under each other)
20
What is the output of the following code?
1 2 3 4 5 6 7 8 (underneath each other)
0 1 2 3 4 5 6 7 (underneath each other)
1 2 3 4 5 6 7 8 (next to each other)
0 1 2 3 4 5 6 7 (next to each other)
21
What is the output of this code?
Python C++
Python
Java
Java C++
22
What is the output of this code?
Happy New Year
Merry Xmas
Merry Christmas
MerryXmas
23
Which of the following is a valid identifier?
name
£name
2name
Merry Christmas
24
What is the output of this code?
equals
false
Merry Christmas
true
25
What is the output of this code?
Java
Java Programming
J
Jv
26
What is the output of this code?
Merry Christmas
4
6, 13
5
27
What is the output of this code?
3 6 9
3 6
6 9
3 9