Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Name: __Justin Arguello

Rodríguez____________________________________________________________

1. Looking at the below code, select the final values of A1.


A1 = range(10)

A) A1 = range(0, 10) # or [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]


B) A1 = {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81}
C) A1 = 1 2 3 4 5 6 7 8 9 10
D) A1 = 10

Respuesta: A) A1 = rango(0, 10) # o [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

2. What is dictionary ( dict=…) in Python, explain your answer?


Is it a good example of dictionary?
dict={'Country':'India','Capital':'Delhi','PM':'Modi'}
print dict[Country]

India

Ans:

Los tipos de datos integrados en Python se denominan diccionario. Define una relación uno a
uno entre claves y valores. Los diccionarios contienen pares de claves y sus valores
correspondientes. Los diccionarios están indexados por claves.

Tomemos un ejemplo:

El siguiente ejemplo contiene algunas claves. País, Capital y PM. Sus valores correspondientes
son India, Delhi y Modi respectivamente.

dict={'País':'India','Capital':'Delhi','PM':'Modi'}

imprimir dictado[País]

India

imprimir dictado[Capital]

Delhi
imprimir dict[PM]

modo

3. How can you randomize the items of a list in Python?

Consider the example shown below:

from random import shuffle


x = ['Keep', 'The', 'Blue', 'Flag', 'Flying', 'High']
shuffle(x)
print(x)

The output of the following code is:

Ans: ['Flying', 'Keep', 'Blue', 'High', 'The', 'Flag']


4. Thinking python, which of the following is an invalid statement?
a) abc = 1,000,000
b) a b c = 1000 2000 3000
c) a,b,c = 1000, 2000, 3000
d) a_b_c = 1,000,000
RESPUESTA: La declaración (b) y = 1000 2000 3000 no es válida porque mostrará
un error de sintaxis cuando se ejecute debido a los espacios entre la información
proporcionada.

5. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1] ?


a) Error
b) None
c) 25
d) 2
RESPUESTA: C) 25

En Python, los índices negativos en las listas se utilizan para acceder a elementos
desde el final de la lista. Entonces, lista1[-1] se refiere al último elemento de lista1,
que es 25 en este caso.

6. What information is required when TCP/IP is configured on Window


Server?
a) IP Address and Subnet Mask
b) MAC Address and VLAN
c) OS Version and Chipset
d) IP Address and OS Version
RESPUESTA: a) IP Address and Subnet Mask

7. Explain what is RAID (Redundant Array of Independent) in Windows


Server?

RAID (Redundant Array of Independent Disks) is a technology used to combine


multiple physical hard drives into a single logical unit for the purpose of data
redundancy, performance improvement, or both. Windows Server supports
several RAID levels, including RAID 0, RAID 1, RAID 5, RAID 10, and RAID 6,
each offering different advantages and trade-offs:
RAID 0 (Striping): This level offers improved performance by striping data across
multiple drives. However, there is no redundancy, so if one drive fails, all data is
lost.

RAID 1 (Mirroring): This level provides data redundancy by mirroring data


between two drives. If one drive fails, data can still be accessed from the other
drive.

RAID 5 (Striping with Parity): RAID 5 combines striping and parity to offer both
performance and redundancy. Data and parity information are striped across
multiple drives, allowing for recovery if one drive fails.

RAID 10 (Mirrored Striping): This level combines mirroring and striping. Data is
mirrored between two sets of striped drives, offering both performance and
redundancy.

RAID 6 (Striping with Double Parity): Similar to RAID 5 but with two sets of parity
information, RAID 6 provides enhanced fault tolerance by allowing for the failure
of up to two drives without data loss.

In Windows Server, RAID can be configured using either hardware RAID


controllers or software RAID solutions provided by the operating system. Each
RAID level has its own benefits and considerations, so the choice of RAID level
depends on the specific requirements of the server in terms of performance,
redundancy, and cost.

8. Explain what is the major difference between NTFS ( New Technology File
System) or FAT (File Allocation Table) on a local server?

The major difference between NTFS (New Technology File System) and FAT
(File Allocation Table) lies in their features, capabilities, and compatibility with
different operating systems. Here are some key differences:

1. File Size and Volume Size Limits:

NTFS: Supports larger file sizes (up to 16 TB) and volume sizes (up to 256 TB).
FAT32: Limited to file sizes of 4 GB and volume sizes of 32 GB.

2. Security and Permissions:

NTFS: Supports advanced security features such as file and folder permissions,
encryption, and auditing.

FAT32: Lacks advanced security features and does not support file and folder
permissions.

3. Reliability and Fault Tolerance:

NTFS: Provides improved reliability through features like journaling, which helps
recover from system crashes and power failures.

FAT32: More susceptible to data corruption in the event of a system crash or


power failure.

4. Compression and Encryption:

NTFS: Supports file compression and encryption natively.

FAT32: Does not support file compression or encryption.

5. File System Compatibility:

NTFS: Compatible with Windows NT and later versions of Windows.

FAT32: Compatible with older versions of Windows, DOS, and some non-
Windows operating systems.

6. Fragmentation and File Allocation:

NTFS: Handles file fragmentation more efficiently and has a more advanced file
allocation system.

FAT32: More prone to fragmentation, which can impact performance on large


volumes.
In summary, NTFS is a more advanced file system compared to FAT32, offering
features such as support for larger file and volume sizes, improved security and
permissions, reliability, and compatibility with modern Windows operating
systems. However, FAT32 may still be used in certain scenarios where
compatibility with older systems or simpler storage requirements are a priority.

9. Thinking Linux, What is the name and path of the main system log?
a) logs , /root
b) dmesg , /var/log/messages
c) root , /root/logs
d) dmesg , /root/user/
RESPUESTA: B) dmesg , /var/log/messages

10. Which account is created by default on Linux installation?

On a typical Linux installation, the "root" account is created by default. The root
account is the superuser account with full administrative privileges over the
system. It has the ability to perform any operation on the system, including
modifying system files and settings.

11. What is the minimum number of partitions that you need to install Linux,
Which are them?

The minimum number of partitions required to install Linux is one. However, it is


recommended to have at least two partitions for a typical Linux installation:

Root Partition (/): This partition is the base filesystem that contains the operating system
files and directories. It is the minimum requirement for a Linux installation.

Swap Partition (optional): While not strictly required, a swap partition is recommended for
most Linux installations. It serves as virtual memory and can help improve system
performance by providing additional memory space when physical memory (RAM) is full.
In summary, the minimum number of partitions needed to install Linux is one (the root
partition), but it is recommended to have at least two partitions (root and swap) for better
performance and flexibility.

12. Please select the best option that you consider:


Raras Varias Muchas
Pregunta No
veces veces veces
1¿Te queda tiempo para programar y planificar? x

x
2¿Tienes alguna idea de cuánto tiempo utilizas para cada trabajo?

3¿Marcas prioridades en tu lista de tareas pendientes? x

¿Terminas siempre las tareas en el último minuto necesitando más x


4
tiempo extra?
5¿Te interrumpen a menudo? x

¿Utilizas tus objetivos fijados para elegir con qué tareas y actividades te x
6
pones primero?
x
7¿Calculas un margen de tiempo extra para los imprevistos?
¿Eres consciente de si el trabajo que realizas es de baja, media o alta x
8
importancia?
¿Cuándo te asignan una nueva tarea, analizas automáticamente el x
9
grado de prioridad?
10¿Te estresan las fechas límites y los compromisos? x

11¿Te distraes con facilidad en una tarea crítica? x

x
12¿Sientes que tienes que llevarte a casa trabajo para poder finalizarlo?

13¿Consultas con tu jefe para ver las prioridades de las tareas a realizar? x

14¿Solo empiezas por las tareas de mayor prioridad? x

You might also like