Search Header Logo

Unidad II Estructura if

Authored by Jesús Alejandro Álvarez Galeana

Other

University

Used 8+ times

Unidad II Estructura if
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

¿Qué estructura de control se usa para evaluar si el número es positivo, negativo o cero?

Un bucle for

Una estructura switch

Una estructua if-else

Ninguna de las anteriores

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

¿Qué hace este programa en Java?

Verifica si un número es par o impar.

Verifica si un número es cero, positivo o negativo.

Suma dos números ingresados por el usuario.

Imprime todos los números del 1 al 10.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

¿Qué parámetro recibe el método esPrimo?

Un número decimal.

Un número entero

Una cadena de texto

Un arreglo de números

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Librería necesaria para poder programar entrada de datos al programa

import java.util.Scanner;

import Java.util.scanner;

impor java.util.Scanner;

import java.Scanner;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Declarar un número entero en el programa

Int num;

INT num;

int num;

Ninguna de las anteriores

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Es la forma correcta para introducir un número con punto decimal al programa

num = teclado.nextInt();

num = teclado.nextLine();

num = teclado.nextFloat();

Niguna de las anteriores

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Es el código correcto para escribir un mensaje al usuario con un salto de línea

system.out.Println("El numero es cero");

System.Out.println("El numero es cero");

System.out.println("El numero es cero");

System.Out.Println("El numero es cero");

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?