practico complutense
Por xd4z
| # | Pregunta | Opciones | Tiempo |
|---|---|---|---|
| 1 | [SUPUESTO 1 - HTML/JS] Dado el siguiente código HTML/JS: Se tiene una página con un h3#top, una imagen#img1, un h1#detalle, una tabla#table con thead y tbody. La tabla tiene filas con clases 'impar', 'doble-borde', 'borde-inferior' y celdas con clase 'resaltar' e ids i1-i4 y a1-a4. El script define un objeto: var incidencia = {titulo:'Antivirus Corporativo', area:'Gobierno T.I.', informacion:function(){ return this.incidencia + ' escrito por ' + this.area; }}. Luego: var nodo=document.getElement |
✓ Cambia el color del texto del elemento 'top' a azul y la imagen 'img1' Cambia la imagen 'img1' Cambia el color del texto del elemento 'top' a verde Cambia el color del texto del elemento 'top' a verde y la imagen 'img1'
|
30s |
| 2 | [SUPUESTO 1 - HTML/JS] Mismo código anterior. El elemento i1 (<td class='resaltar' id='i1'>Instalacion SW</td>) tiene asignado: nodo.onmouseout=function(){ document.getElementById('a1').style.color='black' }. --- PREGUNTA: ¿Cuál es el comportamiento esperado al abandonar el ratón el texto 'Instalación SW'? |
Cambia el color del texto 'Instalacion SW' a azul Cambia el color del texto del elemento 'i1' a negro ✓ Cambia el color del texto del elemento 'a1' a negro Cambia el color del texto del elemento 'a1' a azul
|
30s |
| 3 | [SUPUESTO 1 - HTML/JS] Mismo código. Se define: var nodo=document.getElementById('img1'); nodo.onclick=function(){ document.getElementById('detalle').innerHTML=incidencia.titulo }. Luego se redefine: var nodo=document.getElementById('top'); nodo.onclick=function(){document.getElementById('detalle').innerHTML=incidencia.area}. --- PREGUNTA: ¿Qué aparece en el elemento 'detalle' al hacer click sobre la imagen 'img1'? |
Aparecerá el texto 'Incidencia TOP: Antivirus Corporativo' Aparecerá el texto 'Área de: Gobierno T.I.' Aparecerá el texto 'Gobierno T.I.' ✓ No aparecerá ningún texto
|
30s |
| 4 | [SUPUESTO 1 - HTML/JS] Mismo código. La tabla#table contiene 4 elementos <td> con class='resaltar' (ids: i1, i2, i3, i4). --- PREGUNTA: ¿Qué código insertar en el script para seleccionar el segundo elemento de la clase 'resaltar' y cambiar el tamaño de fuente a 24px? |
const element = document.getElementById('resaltar').style.fontSize = '24px' ✓ const element = document.getElementById('table'); element.getElementsByClassName('resaltar')[1].style.fontSize = '24px' const element = document.getElementById('resaltar'); element.style.fontSize = '24px' const element = document.getElementById('table')['resaltar'].style.fontSize = '24px'
|
30s |
| 5 | [SUPUESTO 1 - HTML/JS] Mismo código. La tabla tiene estructura: <table id='table'><thead><tr>...</tr></thead><tbody>...</tbody></table>. Se ejecuta: let name = document.getElementById('table').firstElementChild.tagName; document.getElementById('incidencias').innerHTML = name; --- PREGUNTA: ¿Qué etiqueta se muestra en el elemento 'incidencias'? |
TABLE ✓ THEAD TR TBODY
|
30s |
| 6 | [SUPUESTO 1 - HTML/JS] Mismo código. El elemento i1 es: <td class='resaltar' id='i1'>Instalacion SW</td>. Se ejecuta: const element = document.getElementById('i1'); let text = element.getAttribute('class'); document.getElementById('incidencias').innerHTML = text; --- PREGUNTA: ¿Qué se muestra en 'incidencias'? |
doble-border impar ✓ resaltar borde-interior
|
30s |
| 7 | [SUPUESTO 1 - HTML/JS] Mismo código. Hay 4 <td> con class='resaltar' dentro de la tabla (i1, i2, i3, i4). Se ejecuta: const element = document.getElementById('table'); const nodes = element.getElementsByClassName('resaltar'); document.getElementById('incidencias').innerHTML = nodes.length; --- PREGUNTA: ¿Qué resultado se muestra? |
✓ 4 3 2 ERROR
|
30s |
| 8 | [SUPUESTO 2 - Linux] Contexto: Nuevo CPD con servidor Linux 'servidor_del_traslado'. Se quiere crear un usuario 'traslado' con contraseña 'zzzz', grupo existente 'migracion' y HOME /traslado/respaldo. --- PREGUNTA: ¿Cuál es el comando correcto? |
useradd traslado -d /traslado/respaldo -p migracion -g zzzz ✓ useradd -d /traslado/respaldo -g migracion -p zzzz traslado useradd -g /traslado/respaldo -d migracion -p zzzz traslado useradd -p /traslado/respaldo -g migracion -d zzzz traslado
|
30s |
| 9 | [SUPUESTO 2 - SSH/Linux] Contexto: Se ha creado el usuario 'traslado' en 'servidor_del_traslado'. Se quiere comprobar remotamente su uid y gid. --- PREGUNTA: ¿Cuál es el comando correcto? |
ssh servidor_del_traslado -l traslado id uid gid ssh -host servidor_del_traslado -l traslado id ssh servidor_del_traslado traslado id ✓ ssh servidor_del_traslado -l traslado id
|
30s |
| 10 | [SUPUESTO 2 - Redes] Contexto: Problemas a nivel 2 (enlace) por MACs antiguas. --- PREGUNTA: ¿Qué parámetro del comando ARP muestra la tabla ARP? |
arp -all arp -i ✓ arp -a arp -g
|
30s |
| 11 | [SUPUESTO 2 - Virtualización] Contexto: Solicitan información sobre virtualización. --- PREGUNTA: ¿A qué se refieren las siglas VDI? |
Virtual Disk Infrastructure Virtual Definition Infraestructure ✓ Virtual Desktop Infrastructure Virtual Desktop Interface
|
30s |
| 12 | [SUPUESTO 2 - Apache] Contexto: Se quiere aumentar a 500 segundos el tiempo antes de que la sesión SSL expire en la cache de Apache. --- PREGUNTA: ¿Qué variable hay que modificar? |
✓ SSLSessionCacheTimeout SSLOCSessionCacheTimeout SSLSessionTimeoutCache SSLStaplingErrorCacheTimeout
|
30s |
| 13 | [SUPUESTO 2 - Linux/Backup] Contexto: Antes de apagar servidores se quiere hacer un tar.gz de las configuraciones en /backup/server/. --- PREGUNTA: ¿Cuál es el comando correcto? |
tar.gz -czvf configuraciones.tar.gz /backup/server/ tar -czvf /backup/server/ configuraciones.tar.gz ✓ tar -czvf configuraciones.tar.gz /backup/server/ tar -xvf configuraciones.tar.gz /backup/server/
|
30s |
| 14 | [SUPUESTO 2 - Linux/Puertos] Contexto: No se llega al servidor por el puerto 777, las comunicaciones ya están comprobadas. --- PREGUNTA: ¿Cómo saber si el servidor está escuchando por el puerto 777? |
netstat -i :777 ip port :777 ✓ lsof -i :777 listen -i :777
|
30s |
| 15 | [SUPUESTO 2 - Seguridad] Contexto: Hay que securizar las redes filtrando conexiones por IP y puerto. --- PREGUNTA: ¿Qué hardware se necesita? |
Host IDS ✓ Cortafuegos de capa de red Network PIDS Honeypot
|
30s |
| 16 | [SUPUESTO 3 - Windows] Contexto: Universidad con departamentos de software libre y propietario fusionados. Máquinas con Windows 10. --- PREGUNTA: ¿Qué ejecutable listar todos los servicios en ejecución? |
✓ services.msc service.msc regedit.msc servicesreg.msc
|
30s |
| 17 | [SUPUESTO 3 - TCPDUMP] Contexto: Errores de conexión en servidor con IP 10.253.1.112 en interfaz eth2. --- PREGUNTA: ¿Cuál es el comando tcpdump correcto para capturar tráfico y guardar en fichero? |
tcpdump -ni eth2 host 10.253.1.112 -dump fichero.log tcpdump -host 10.253.1.112 ni eth2 -w fichero.log tcpdump -ni eth2 host 10.253.1.112 fichero.log ✓ tcpdump -ni eth2 host 10.253.1.112 -w fichero.log
|
30s |
| 18 | [SUPUESTO 3 - Subredes] Contexto: IP 10.253.1.112 con máscara 255.255.192.0 (/18). --- PREGUNTA: ¿Cuál es la dirección de broadcast? |
✓ 10.253.63.255 10.253.0.255 10.253.0.0 10.253.63.0
|
30s |
| 19 | [SUPUESTO 3 - Protocolos] Contexto: Aplicación sencilla para comprobar comunicaciones, no debe cargar la red, no importa perder paquetes, debe ser rápida. --- PREGUNTA: ¿Qué protocolo de transporte OSI usaría? |
TCP ✓ UDP HTTP IP
|
30s |
| 20 | [SUPUESTO 3 - Windows Firewall] Contexto: Sistemas Windows 10 sin firewall activo. --- PREGUNTA: ¿Cuál es el comando correcto para activar el firewall? |
netsh advfirewall set firewall state on netsh advfirewall set profile on netsh advfirewall set on ✓ netsh advfirewall set currentprofile state on
|
30s |
| 21 | [SUPUESTO 3 - Windows Firewall] Contexto: Firewall activado en Windows 10, se necesita aceptar conexiones entrantes TCP por puerto 80. --- PREGUNTA: ¿Cuál es el comando correcto? |
✓ netsh advfirewall firewall add rule name="Open 80" dir=in action=allow protocol=TCP localport=80 netsh advfirewall firewall add rule name="Open 80" dir=input action=allow protocol=TCP localport=80 netsh advfirewall firewall add rule name="Open 80" dir=input action=allow protocol=TCP port=80 netsh advfirewall firewall add rule name="Open 80" dir=incoming action=allow protocol=TCP portlocal=80
|
30s |
| 22 | [SUPUESTO 3 - Windows Procesos] Contexto: Equipo Windows 10, se necesita enumerar procesos del sistema en ejecución. --- PREGUNTA: ¿Cuál es el comando correcto? |
tasklist /fi tasklist /fi "AUTHORITY\SYSTEM" /fi "STATUS eq running" ✓ tasklist /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running" tasklist /fi "USERNAME = NT AUTHORITY\SYSTEM" /fi "STATUS = running"
|
30s |
| 23 | [SUPUESTO 4 - MySQL] Contexto: Tabla 'Departamentos' (dep_id INT PK, dep_nombre varchar, dep_ubicacion varchar). Tabla 'Investigadores' (inv_id INT PK, nombre varchar(50), apellidos varchar(100), email varchar(100), contratado DATE, salario DECIMAL, dep_id INT FK, telefono INT). --- PREGUNTA: Consulta para encontrar nombre y salario de investigadores cuyo salario es mayor que el salario medio de TODOS los departamentos. |
✓ SELECT nombre, salario FROM investigadores WHERE salario > ALL (SELECT avg(salario) FROM investigadores GROUP BY dep_id) SELECT nombre, salario FROM investigadores WHERE salario > ALL (SELECT avg(salario) FROM investigadores) SELECT nombre, salario FROM investigadores WHERE salario > (SELECT avg(salario) FROM investigadores) SELECT nombre, salario FROM investigadores WHERE salario > (SELECT avg(salario) FROM investigadores GROUP BY dep_id)
|
30s |
| 24 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. --- PREGUNTA: Consulta para sacar la fecha actual en formato 'Marzo 5, 2017' en MySQL. |
SELECT DATE_FORMAT(CURDATE(),'%m %e, %Y') SELECT DATE_FORMAT(CURDATE(),'%M %D, %y') SELECT DATE_FORMAT(DATE(now()),'%m %d, %A') ✓ SELECT DATE_FORMAT(DATE(now()),'%M %d, %Y')
|
30s |
| 25 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. Campo 'contratado' de tipo DATE. --- PREGUNTA: Consulta para extraer investigadores contratados en octubre de cualquier año. |
SELECT nombre, apellidos FROM investigadores WHERE DATE_TO_CHAR(contratado,'m') = '10' SELECT nombre, apellidos FROM investigadores WHERE DATE_MONTH(contratado) = 'OCTUBRE' ✓ SELECT nombre, apellidos FROM investigadores WHERE MONTH(contratado) = 10 SELECT nombre, apellidos FROM investigadores WHERE TO_MONTH(contratado)= 'octubre'
|
30s |
| 26 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. Campo 'telefono' tipo INT. Los últimos 4 dígitos son la extensión corta. --- PREGUNTA: ¿Qué consulta extrae esas extensiones? |
✓ SELECT RIGHT(telefono, 4) as ext FROM investigadores SELECT SUBSTR(telefono, 4) as ext FROM investigadores SELECT RTRIM(telefono, 4) as ext FROM investigadores SELECT SUBSTR(telefono, LENGTH(telefono) - 4) as ext FROM investigadores
|
30s |
| 27 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. --- PREGUNTA: ¿Cuál es la función MySQL para convertir una cadena en fecha? |
TODATE ✓ STR_TO_DATE TO_DATE CONVERT
|
30s |
| 28 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. Se necesita el coste total de salarios por ubicación. --- PREGUNTA: ¿Cuál es la consulta correcta? |
✓ Select dep_ubicacion,sum(salario) from investigadores i inner join departamentos d on i.dep_id = d.dep_id group by dep_ubicacion Select dep_nombre,sum(salario) from investigadores i inner join departamentos d on i.dep_id = d.dep_id Select dep_ubicacion,sum(salario) from investigadores i inner join departamentos d on i.dep_id = d.dep_id group by dep_ubicacion, salario Select dep_nombre,sum(salario) from investigadores i inner join departamentos d on i.dep_id = d.dep_id group by dep_ubicacion, salario
|
30s |
| 29 | [SUPUESTO 4 - MySQL] Contexto: Mismas tablas. Se quiere eliminar solo el departamento 'informática'. --- PREGUNTA: ¿Cuál es la consulta correcta? |
truncate tabla Departamentos ✓ delete from Departamentos where dep_nombre='informática' delete from 'Departamentos' where dep_nombre='informática' delete from Departamentos where departamento='informática'
|
30s |
| 30 | [SUPUESTO 5 - Redes] Contexto: Equipo con IP 192.168.0.32/24. --- PREGUNTA: ¿A qué clase pertenece? |
Clase 0 ✓ Clase C Clase A Clase B
|
30s |
| 31 | [SUPUESTO 5 - Redes] Contexto: IP 192.168.0.32/24. --- PREGUNTA: Máscara de subred /24 en binario. |
00000000.11111111.11111111.11111111 ✓ 11111111.11111111.11111111.00000000 11111111.11111111.1111111.11111111 1.0.1.1
|
30s |
| 32 | [SUPUESTO 5 - Redes] Contexto: IP 192.168.0.32/24. --- PREGUNTA: Máscara de subred /24 en decimal. |
255.255.255.96 255.255.0.0 ✓ 255.255.255.0 255.0.0.0
|
30s |
| 33 | [SUPUESTO 5 - Redes] Contexto: IP 192.168.0.32/24. --- PREGUNTA: ¿Cuál es la dirección de broadcast? |
✓ 192.168.0.255 192.168.0.1 192.168.0.0 192.0.0.255
|
30s |
| 34 | [SUPUESTO 5 - Redes] Contexto: IP 192.168.0.32/24. --- PREGUNTA: ¿Cuántos bits se destinan a hosts? |
255 192 ✓ 8 24
|
30s |
| 35 | [SUPUESTO 5 - Redes] Contexto: IP 192.168.0.32/24. --- PREGUNTA: ¿Cuál es la dirección IP del último host? |
✓ 192.168.0.254 192.168.0.1 192.168.0.256 192.168.0.255
|
30s |
TAICord