C#, Repaso del tema 3 (tipos de datos básicos)

Preguntas incluidas: 10 (al azar) de 19

1

Un dato "float" se lee desde otro dato (por ejemplo, desde un string recibido con ReadLine) con

  • Convert.ToFlt
  • Convert.ToFloat
  • Convert.ToSimple
  • Convert.ToSingle

2

Un dato "int", permite enteros de ¿cuántas cifras?

  • 7
  • 9
  • 11
  • 13

3

Se puede convertir un número n a hexadecimal con

  • n.Convert.ToString(16);
  • Convert.ToString(16,n);
  • Convert.ToString(n,16);
  • n.Convert.ToHex(16);
  • Convert.ToHex(n);

4

Para leer desde teclado un dato que contenga números entre -50000 y +50000, optimizando el espacio ocupado, usarías

  • Convert.ToInt32
  • Convert.ToUInt32
  • Convert.ToUint32
  • Convert.ToInt16
  • Convert.ToUInt16
  • Convert.ToUint16

5

Un dato "float", permite datos de ¿cuántas cifras significativas?

  • 7
  • 3
  • 15
  • 31

6

En C#, un dato boolean puede tener valores

  • T y F
  • .T. y .F.
  • true y false
  • True y False
  • "true" y "false"
  • 'true' y 'false'

7

El tipo de datos "decimal" permite números con

  • 16 cifras
  • 22 cifras
  • 28 cifras

8

En C#, un dato de tipo "byte" permite guardar datos del

  • -128 a 127
  • -127 a 128
  • 0 a 255
  • 1 a 256

9

Se puede leer un dato de tipo "Decimal" desde teclado con

  • Convert.ToDecimal
  • Convert.ToLongDouble
  • Convert.ToInt96
  • Convert.ToInt128

10

Un dato "long", permite enteros de ¿cuántas cifras?

  • 7
  • 10
  • 14
  • 17