IT Questions and Answers :)

Monday, January 11, 2021

When programming in Python 3, which code has the right syntax?

When programming in Python 3, which code has the right syntax?

  • print("Hello, World")
  • print("Hello, World')
  • print("Hello, World"
  • print (Hello, World) 
 

EXPLANATION

Syntax errors are a the most common problem when programming.  For basic programming, an open bracket is required for any parameters to be passed to a function, and strings (text) requires quotes to distinguish itself from any variables in the code.  

SOURCE

https://medium.com/groklearning/syntax-error-how-to-avoid-the-most-common-trap-for-new-programmers-1424472c3e57
Share:

Tuesday, December 22, 2020

What is the Windows command line tool that allow you to add a driver package to the driver store?

What is the Windows command line tool that allow you to add a driver package to the driver store?

  • DrvUtil
  • PnPUtil
  • DrvStrUtil
  • AddD 

 
What is the Windows command line tool that allow you to add a driver package to the driver store?

EXPLANATION

PnPUtil (PnPUtil.exe) is a command line tool that lets an administrator perform the following actions on driver packages:

Adds a driver package to the driver store.

Installs a driver package on the computer.

Deletes a driver package from the driver store.

Enumerates the driver packages that are currently in the driver store. Only driver packages that are not in-box packages are listed. An in-box driver package is one which is included in the default installation of Windows or its service packs.


SOURCE

https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/pnputil

 

Share:

Friday, December 18, 2020

Which of the following is not a type of server software that is provided by VMware ?

Which of the following is not a type of server software that is provided by VMware ?

  • VMware ESXi Server
  • VMware ESX Server
  • VMware Server
  • VMware ESI Server 
 
 
Which of the following is not a type of server software that is provided by VMware ?

EXPLANATION

VMware provides three different types of server software

VMware ESX Server, VMware ESXi Server, VMware Server.  

SOURCE

https://www.searchvmware.techtarget.com/definition/VMware
Share:

Wednesday, December 16, 2020

You want to enable Remote Desktop (RDP) remotely on a Windows Client, which utility is correct?

You want to enable Remote Desktop (RDP) remotely on a Windows Client, which utility is correct?

  • ipconfig
  • Active Directory
  • Psexec (PStools)
  • ssh 
 
You want to enable Remote Desktop (RDP) remotely on a Windows Client, which utility is correct?

 

EXPLANATION

When you connect with PSexec, you can generate a command prompt and edit the registry to enable RDP.

1. psexec \\(IPadress or hostname) -u (domain\username) –p( password) cmd
example: psexec \\10.0.0.1 -u testdomain\Administrator -p password cmd
2.  reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /f /v fDenyTSConnections /T REG_DWORD /d 0
3.  shutdown –r –t 0

Share:

Friday, December 11, 2020

In Linux system, which command will print the file or folder permissions, in octal notation ?

In Linux system, which command will print the file or folder permissions, in octal notation ?

  • stat -c %a /your_file_path
  • ls -all /your_file_path
  • ls -ltr /your_file_path
  • ls -ll /your_file_path 

In Linux system, which command will print the file or folder permissions, in octal notation ?

 

EXPLANATION

If we want to view the file permissions or the folder permissions in octal notation (mean in numbers), the command will be:

linux@machine:~$ sudo stat -c %a <the file path>

Otherwise, any other command, will show us the file or the folder permissions in Letters mode.


SOURCE

https://www.linux.com/learn/understanding-linux-file-permissions

 

 

Share:

Popular Posts