100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CNIT 255 Exam 1 |114 Questions and answers

Puntuación
-
Vendido
-
Páginas
30
Grado
A+
Subido en
21-03-2025
Escrito en
2024/2025

CNIT 255 Exam 1 |114 Questions and answers

Institución
CNIT 255
Grado
CNIT 255










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
CNIT 255
Grado
CNIT 255

Información del documento

Subido en
21 de marzo de 2025
Número de páginas
30
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CNIT 255 Exam 1 |114 Questions
and answers
Which describes Java?

A) Object Oriented

B) Architecture-Neutral

C) Multithreaded

D) All of the above. - -A

- Which describes the origins of Java?

A) Java was invented in in 2000.

B) Java has always been used mostly at the server level, since it could not
compete with better options for dynamic content in the browser.

C) Java was considered reasonably safe and secure, running in a limited
"sandbox."

D) Oracle, who invented Java, made sure Netscape, Internet Explorer, and
the other major browsers at the time had a unified version of Java built into
them. - -C

- How can you print the String "hello" in Java?

A) System.out.println("hello");

B) printf("hello");

C) "hello".print();

D) println("hello"): - -A

- Suppose you have a correctly written java file, "MyClass.java". When it is
compiled, what new file will be produced? - -Myclass.class

- What best describes the "String [] args" in a main() method?

A) It allows someone to pass arguments into your program when they run
your code.

,B) It explains to the compiler that your program is to be run from the
command line instead of double clicked from the desktop.

C) It defines a variable called String of type args.

D) It's not typed right and will cause a compile-time error. - -A

- Name as many floating number types in Java as you know: - -Float and
Double

- What keyword do you put in front of ints and doubles to make them
constants? - -Final

- What will the value of x be after the following expression is evaluated?

int x = 14 % 10 + ;

A) 5.25
B) 2.65
C) 5
D) 2 - -C

- Which is true of the char data type? (list all that apply)

A) It is considered one of the four "integer" variable types

B) It represents a unicode character by mapping a numerical value to a
glyph.

C) The maximum numerical value it can hold is 255.

D) char literal values are typed in java programs using double quotes (e.g.
"A")

E) Some char literal values need a slash (\) in front of them. - -B and E

- What is returned by Math.pow(3,2)

A) "bang!bang!bang! bang!bang!bang!"

B) 8

C) 9

D) 8.0

, E) 9.0 - -E

- What is printed?

int x = 0;
x += x++;
System.out.println(x); - -0

- Which conversions are "automatic"? List all that apply:
A) int => double

B) double => int

C) char => int

D) long => int

E) double => short - -A and C

- What is the output of the following code?

public class SimpleOperations
{
public static void main(String[] args)
{
double a = 10.5 % 2;
double b = 3.5 * 2;
double c = 6.;
System.out.println("a => " + a + " b => " + b + " => c " + c);
}
} - -a => 0.5 b => 7.0 => c 3.4

- What best describes a String?

A) It is a primitive variable type in Java

B) One can be created by putting it in single quotes, 'like this'

C) Strings are sequences of unicode characters.

D) You can only call a method on a String if you put it in a variable first. - -C

- What happens when the computer goes to run this line of code?

System.out.println("String".substring(2, 6)); - -(it prints "ring")
$16.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
AccurateScores Not yet listed
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
552
Miembro desde
3 año
Número de seguidores
336
Documentos
15259
Última venta
6 días hace

3.7

113 reseñas

5
51
4
18
3
18
2
11
1
15

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes