0

programming languages Online Quiz - 14

Description: programming languages Online Quiz - 14
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

What is a loop ?

  1. A new type of Applet

  2. A segment of code to be run a specified amount of times

  3. A segment of code to be run infinite times

  4. A segment of code to be run once


Correct Option: B

BCPL stands for ?

  1. Basic Combined Programming Language

  2. Basic Computer Programming Language

  3. Basic Combination Programming Language

  4. None of the Above


Correct Option: A

Before Bob Muglia formally announced Windows PowerShell in April 2006, what was PowerShell's code name?

  1. Longhorn

  2. Monad

  3. Cairo

  4. Whistler


Correct Option: B
Explanation:

To answer this question, the user needs to have knowledge about the pre-release history of Windows PowerShell.

The correct answer is:

B. Monad

Explanation:

Before its formal announcement, Windows PowerShell was code-named "Monad." Monad was a project that Microsoft had been working on for several years. It was designed to be a task-based command-line shell and scripting language that would make it easier to automate system administration tasks. In 2006, Microsoft announced Monad as Windows PowerShell, which became its official name. Option B is the correct answer.

A. Longhorn: Longhorn was the code name for Windows Vista, which was released in 2006, the same year PowerShell was formally announced.

C. Cairo: Cairo was a code name for a project that Microsoft worked on in the early 1990s. It was intended to be a future version of Windows NT with an advanced object-oriented user interface and a new file system. However, the project was cancelled, and its technologies were incorporated into other Microsoft products.

D. Whistler: Whistler was the code name for Windows XP, which was released in 2001. It was the successor to Windows 2000 and was the first version of Windows to use the Windows NT kernel for both consumer and business versions of the operating system.

Which of the following Windows versions does NOT support Windows PowerShell?

  1. Windows 2000

  2. Windows XP SP2

  3. Windows Vista

  4. Windows Server 2003 SP1


Correct Option: A
  1. Local machine's digital signature certificate store

  2. HKEY_LOCAL_MACHINE registry hive

  3. HKEY_CURRENT_USER registry hive

  4. All of the above


Correct Option: D

To Query from the Application logon your compute, you can use the Get-EventLog cmdlet in the Windows Powershell

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, we need to understand how to query the Application log using the Get-EventLog cmdlet in Windows PowerShell.

Option A) True - This option is incorrect because the Get-EventLog cmdlet is used to query event logs, including the Application log. Therefore, it is true that you can use the Get-EventLog cmdlet to query the Application log.

Option B) False - This option is correct because it states that you cannot use the Get-EventLog cmdlet to query the Application log, which is incorrect. The Get-EventLog cmdlet is specifically designed to retrieve events from event logs, including the Application log.

The correct answer is B) False. This option is correct because you can use the Get-EventLog cmdlet in Windows PowerShell to query the Application log on your computer.

Windows PowerShell script files use which of the following file extensions?

  1. .wps

  2. .ps1

  3. .shl

  4. .cmd


Correct Option: B

AI Explanation

To answer this question, you need to have basic knowledge of Windows PowerShell and its file extensions.

Option A) .wps - This option is incorrect because .wps is the file extension for Microsoft Works files, not Windows PowerShell script files.

Option B) .ps1 - This option is correct because .ps1 is the file extension commonly used for Windows PowerShell script files. PowerShell scripts are written in the PowerShell scripting language and have the .ps1 extension.

Option C) .shl - This option is incorrect because .shl is not a recognized file extension for Windows PowerShell script files.

Option D) .cmd - This option is incorrect because .cmd is the file extension for Windows Command Script files, not Windows PowerShell script files.

The correct answer is B) .ps1. This option is correct because .ps1 is the commonly used file extension for Windows PowerShell script files.

  1. Cmdlets

  2. PowerShell scripts

  3. Regular executables

  4. All of the above


Correct Option: D
Explanation:

To answer this question, the user needs to have basic knowledge of Windows PowerShell and its capabilities.

The correct answer is:

D. All of the above

Explanation:

PowerShell is a powerful command-line shell and scripting language that allows users to automate tasks and manage configurations. It can execute commands in the form of cmdlets, PowerShell scripts, and regular executables.

A. Cmdlets are PowerShell commands that are designed to perform a specific task. They are used to automate common system administration tasks and are built into Windows PowerShell.

B. PowerShell scripts are a series of commands that can be executed together to perform a more complex task. These scripts can be written using the PowerShell scripting language and can be run from within the PowerShell console.

C. Regular executables are standalone applications that can be executed from the PowerShell console or through a PowerShell script.

Therefore, the correct answer is D. All of the above, as Windows PowerShell can execute commands in all of these formats.

PowerShell is often referred to as what?

  1. An object oriented shell built on the .NET Framework

  2. A clam shell

  3. A band shell

  4. All of the above


Correct Option: A
Explanation:

To answer this question, the user must be familiar with the basic features and functionalities of PowerShell.

The correct answer is:

A. An object-oriented shell built on the .NET Framework

Option A is correct because PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language. It is built on the .NET Framework and is object-oriented, allowing users to interact with various system objects through commands and scripts.

Option B is incorrect because "clam shell" is not a common term used to describe PowerShell. A "clam shell" typically refers to a type of laptop design where the screen and keyboard fold together to form a clam-like shape.

Option C is incorrect because a "band shell" is a type of outdoor performance venue and has nothing to do with PowerShell.

Option D is incorrect because only option A is correct. Options B and C are incorrect.

Therefore, the answer is:

The Answer is: A

What can you type in PowerShell to find out more information about a particular command?

  1. Oh magic genie

  2. Get-help

  3. Get-please

  4. All of the above


Correct Option: B

What must you set before you can run a PowerShell script?

  1. Your alarm clock

  2. Your budget

  3. Your execution policy

  4. All of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of PowerShell execution policies.

Option A) Your alarm clock - This option is incorrect because setting an alarm clock is not necessary to run a PowerShell script. The execution of a script is not dependent on time management.

Option B) Your budget - This option is incorrect because setting a budget has no relevance to running a PowerShell script. The execution of a script is not related to financial planning.

Option C) Your execution policy - This option is correct because before running a PowerShell script, you need to set the execution policy. The execution policy determines the level of security for running scripts on your system. By default, the execution policy is set to "Restricted," which prevents the execution of any script. You need to change the execution policy to a more permissive value, such as "RemoteSigned" or "Unrestricted," to allow the execution of scripts.

Option D) All of the above - This option is incorrect because only option C, setting the execution policy, is relevant to running a PowerShell script. Options A and B (setting an alarm clock and a budget) have no connection to executing a script.

The correct answer is C) Your execution policy. This option is correct because before running a PowerShell script, you must set the execution policy to allow script execution on your system.

PowerShell is:

  1. An interactive management shell

  2. Something your job will eventually require

  3. All of the above

  4. shell


Correct Option: C

What is PowerShell?

  1. A fabulous dessert topping

  2. A terrific floor wax

  3. The future of Windows automation and administration

  4. All of the above


Correct Option: C

PowerShell passes objects from one command to another via what?

  1. IRC

  2. E-mail

  3. The pipeline

  4. All of the above


Correct Option: C
- Hide questions