Command Line And Batch

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Vendettasoldier
V
Vendettasoldier
Community Contributor
Quizzes Created: 2 | Total Attempts: 899
Questions: 8 | Attempts: 334

SettingsSettingsSettings
Line Quizzes & Trivia

This quiz covers the start of level 2 on my website and reviews command line commands and batch file work.


Questions and Answers
  • 1. 

    How do you access the command line in windows?

    • A.

      By going to my C:\ drive

    • B.

      Going to start then run then typing CMD and hitting ok

    • C.

      By going to start then run then typing regedit and hitting ok

    Correct Answer
    B. Going to start then run then typing CMD and hitting ok
    Explanation
    The correct answer is going to start then run then typing CMD and hitting ok. This is because the command prompt in Windows can be accessed by opening the "Run" dialog box, typing "CMD" (which stands for Command) and pressing "OK". This will open the command line interface where users can enter commands to execute various tasks and functions.

    Rate this question:

  • 2. 

    Some command line commands include?

    • A.

      Start, run, edit, paste, HKLM

    • B.

      Im not sure what some commands are

    • C.

      Ping, nbtstat, netstat, tracert

    Correct Answer
    C. Ping, nbtstat, netstat, tracert
    Explanation
    The given answer lists command line commands such as ping, nbtstat, netstat, and tracert. These commands are commonly used for network troubleshooting and diagnostics. "Ping" is used to test network connectivity between two devices, "nbtstat" displays NetBIOS over TCP/IP (NBT) protocol statistics and current connections, "netstat" shows network statistics and active connections, and "tracert" traces the route that packets take to reach a destination. These commands are essential for network administrators to identify and resolve network issues.

    Rate this question:

  • 3. 

    Netstat -ano does what ?

    • A.

      Shows me when a computer is online or in use

    • B.

      It shows you the ports on your computer and shows you what is connecting to you and from where

    • C.

      Shows computer table names

    Correct Answer
    B. It shows you the ports on your computer and shows you what is connecting to you and from where
    Explanation
    The correct answer is "it shows you the ports on your computer and shows you what is connecting to you and from where." The netstat -ano command is used to display active network connections, listening ports, and related information such as the process ID (PID) of each connection. It provides details about the established connections, including the local and remote IP addresses, port numbers, and the state of the connection. This information can be helpful in troubleshooting network issues and identifying any unauthorized connections to your computer.

    Rate this question:

  • 4. 

    Batch files can be created using?

    • A.

      Notepad

    • B.

      Microsoft word

    • C.

      Photoshop

    Correct Answer
    A. Notepad
    Explanation
    Batch files can be created using Notepad. Notepad is a simple text editor that allows users to create and edit plain text files. Batch files are scripts that contain a series of commands that can be executed in sequence. Notepad provides a convenient and straightforward platform for writing and saving batch files with the .bat extension. It does not require any specific programming language or complex software, making it accessible to users of all levels of technical expertise.

    Rate this question:

  • 5. 

    Pause and echo do what in batch

    • A.

      Create the title of the batch program

    • B.

      Asks the user to hit a key to continue

    • C.

      Saves a users work and exits

    • D.

      Outputs some text on the screen

    • E.

      Both b and d

    Correct Answer
    E. Both b and d
    Explanation
    The correct answer is "both b and d." This means that both the "pause" and "echo" commands in batch programming are used to output text on the screen. The "pause" command asks the user to hit a key to continue, while the "echo" command is used to create the title of the batch program.

    Rate this question:

  • 6. 

    Start and Call do what in batch

    • A.

      Starts a website or computer program

    • B.

      Adds a comment to your source code

    • C.

      Calls another batch file

    • D.

      Both a and c

    Correct Answer
    D. Both a and c
    Explanation
    The "start" command in batch programming is used to launch a website or a computer program. On the other hand, the "call" command is used to execute or run another batch file. Therefore, the correct answer is both a and c, as both "start" and "call" commands have the mentioned functionalities in batch programming.

    Rate this question:

  • 7. 

    *msg, cls, and rem do what in batch code?

    • A.

      Opens a given folder and deletes its contents

    • B.

      Creates message boxes, adds comments to your code, and clears the screen

    • C.

      Creates a text document and adds information into that document

    Correct Answer
    B. Creates message boxes, adds comments to your code, and clears the screen
    Explanation
    The batch code commands "msg" is used to create message boxes, "cls" is used to clear the screen, and "rem" is used to add comments to the code. These commands are used to enhance the functionality and readability of the batch code.

    Rate this question:

  • 8. 

    Do batch files always start with @echo off

    • A.

      Yes

    • B.

      No

    Correct Answer
    A. Yes
    Explanation
    Batch files commonly start with the "@echo off" command to prevent the command prompt from displaying the commands being executed. This is done to make the output of the batch file cleaner and more user-friendly. By starting with "@echo off", the batch file will run without showing each command as it is executed.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 03, 2010
    Quiz Created by
    Vendettasoldier
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.