Write the windows cli net commands

Assignment Help Basic Computer Science
Reference no: EM13767231

Question 1. The NETSH command that will set the IP address of the interface name LocalNet to a DHCP-supplied IP address is _____.

netsh interface set ip address "NIC" source=dhcp

netsh interface ip address "LocalNet" source=dhcp

netsh interface ip set address "LocalNet" source=dhcp

netsh interface set ip address source=dhcp "NIC"

Question 2. Which of the following Windows commands will restart your computer in 5 minutes?

shutdown /r /t 50

shutdown /r /t 300

shutdown t 5 /r

shutdown /t 300 /r

Question 3. Which one of the following Windows NET commands options is NOT used to control services with the NET????? ServiceName?

STOP

START

CONTINUE

DELETE

Question 4. SPOOLER is the name of the service to do what with the WINDOWS NET command?

To control the DHCP server

To stop spooling the DNS service

To control the queue of print jobs

None of the above

Question 5. What is the best choice for a variable name representing an interest rate?

i

interest

ir

interestRate

Question 6. What is the problem with the following statement? lastName = "Jones

There is nothing wrong with this assignment.

lastName is ***** ***** descriptive variable name.

Jones should be in double quotes.

Value on the left must be a variable name.

Question 7. An English-like statement used to describe the logic of a program is known as _____.

desk checking

pseudocode

flowchart

code map

Question 8. What is the problem with the following statement? average = (60 + 75) /2

Parentheses are not allowed.

Data types don't match.

Average should be in quotes.

There is no problem with this statement.

Question 9. What is the problem with the following statement? 75 = percent

75 is not a reasonable percent value.

Data types don't match.

75 should be in quotes.

Value on the left must be a variable name.

Question 10. Which VBScript Boolean operator has the highest precedence?

And

OR

Not

XOR

Question 11. In VBScript, which relational operator is used to test for the "Greater Than" relationship?

>>

<

>=

>

Question 12. The VBScript Boolean operator AND is used to evaluate multiple conditions where true means _____.

all conditions must be false

all conditions must be true

any one or more conditions must be false

any one or more conditions must be true

Question 13. What VBScript decision-making statement would be for a single condition and two alternative code blocks to be executed?

If/Then

While

If/Then/Else

Do/Until

Question 14. What VBScript decision-making statement would be for a single condition and a single code block to be executed?

If/Then

While

If/Then/Else

Do/Until

Question 15. Which VBScript statement represents incrementing the loop counter variable called count?

count = 1

while (count <= 10)

count = count + 1

count++

Question 16. A loop that counts down operates by having the loop control variable _____.

initialized

checked

decremented

incremented

Question 17. Which of the following would NOT be a valid comparison to control a While loop?

count <> 10

count > true

count > 1

count * 3 > 100

Question 18. When a VBScript loop control variable is not altered during loop execution, a(n) _____ loop may result.

single pass

indeterminate

endless

default

Question 19. The statements that are repeated during loop execution are called the _____.

loop body or code block

decision statements

loop group

loop variables

Question 20. What name is ***** ***** to a function or subroutine that calculates overtime pay?

calcO()

calculate overtime()

cO()

calculateOvertime()

Question 21. Internal documentation for scripts include _____.

a data dictionary

program comments

a print chart

user manuals

Question 22. What WSH object is required for VBScript File I/O?

Scripting.FileSystemObject

FileSystemObject

Scripting.FileSystem

WScript.FileSystemObject

Question 23. In creating a VBScript Scripting.FileSystemObject, you must start the code line with _____.

Let fso = CreateObject

Set fso = CreateObject

Let fso = new Object

Set fso = new Object

Question 24. Which line will properly create the object for VBScript File I/O?

Set fso = Scripting.FileSystemObject

fso = CreateObject("Scripting.FileSystem")

Set fso = CreateObject("Scripting.FileSystem")

Set fso = CreateObject("WScript.FileSystemObject")

Question 25. What is the name for a field that uniquely identifies a record?

Primary key

Unique key

Foreign key

Table key

Question 26. What is another name used to refer to a record in a database?

Character

Column

Row

Table

Question 27. The _____ in a table is the column that makes each record different from all others.

unique record

primary key

sort key

magic field

Question 28. What is the most commonly used method to extract data from a database?

SQL

MML

C++

Java

1. Write the Windows CLI NET commands that will turn the Spooler service OFF and then ON.

2. Write the Windows CLI NET commands that will turn the WORKSTATION service OFF and then ON.

3. Write the VBScript code lines that perform the following tasks: define a variable name that is initialized to "John Doe" and a variable age that is initialized to 35. Display a message that uses the variables "Your name is***** and your age is 35."

4. Write the VBScript code that implements this logic. Given the numeric variable age, display the message "You are a Senior" if age is greater than or equal to 65, otherwise display the message "You are not a Senior".

5. Assuming that you are connected to a database table called Computers with the fields Computer, Hostname Room_Num, CPU_Type, Num_CPUs, Bit_Size, OS_Type, Memory, and HDD_Size, write the SQL Query String sqlStr such that the fields Computer, Hostname, and CPU_Type will be displayed for all records CPU_Type is 'AMD' and the Bit_Size is 64. The returned records should be sorted by Hostname.

6. Write a VBScript function called MaxNum that accepts two numbers and returns the largest of the two numbers.

Reference no: EM13767231

Questions Cloud

Write a paper on starbucks loses trademark dispute : Write a paper on Starbucks Loses Trademark Dispute Over 'Charbucks' Coffee.
Determine the hardware to be used and the installation : Determine the hardware to be used and the installation options. How will users log onto the systems. Explain.
Write paper on burning of a cross : Please discuss in a 4-5 page paper one of the following topics: The act of flag burning, Protesting and Burning of a Cross
Warite an essay on say no to bottled water : Warite an essay on Say No to Bottled Water.
Write the windows cli net commands : Write the Windows CLI NET commands that will turn the Spooler service OFF and then ON.
Should oil be the basis for the united states : Should oil be the basis for the United States to become in involved militarily
Credit card crime : Credit Card Crime-In a 2 page paper, please discuss the following: Assume a person accidentally picks up a credit card that is not theirs and uses the card in several instances
All experience becomes useless : Please formalize the argument given in the following passage. For all inferences from experience suppose, as their foundation, that the future will resemble the past, and that similar powers will be conjoined with similar sensible qualities.  If ther..
What about this quality or accomplishment makes you proud : Tell us about a personal quality, talent, accomplishment, contribution or experience that is important to you. What about this quality or accomplishment makes you proud and how does it relate to the person you are?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Recognize each dependency by type using code

Recognize each dependency by type; write the two instructions involved; recognize which instruction is dependent; and name storage location involved.

  Differentiate centralised and distributed data processing

Explain the differences between centralised and distributed data processing. Describe the pros and cons of each approach.

  Write a program that creates a binary tree

Write a program that creates a Binary Tree from an array of integers, goes through it using inorder traversal (saving that to another array), then makes another balanced binary tree.

  Kinds of system-building methods used by dorfman

Recognize the kinds of system-building methods used by Dorfman to create its wireless warehouse system. Explain the methodologies you would recommend

  Use a for loop to iterate through the array and input values

Use a For loop to iterate through the array and input the values.

  Cpu training

What kinds of tools would be considered media for computer-based training?

  Write an algorithm to compute a student average grade

Weight is 20, maximum score is 75 iii. Final exam - Weight is 30, maximum score is 100 As an example, if a student scores 100 on the Homework Assignments, 55 on the Midterm exam and 85 on the Final exam, then their average grade is rounded to 82.

  Use the class date type to store the date of birth

Use the class date type to store the date of birth, admit date, discharge date, and class doctorType, to store attending physicians name. Add appropriate constructors and member functions to initialize, access and manipulate the data members.

  Write instructions to move value of register and add them

Write instructions to move value 34H into register A and value 3FH into register B, then add them together. Where is the result

  Basic forms of conducting international business

Discuss the basic forms of conducting international business, and basic international business strategies.

  Create logic circuit which will decode dtmf-like keypad

Create the logic circuit which will decode the DTMF-like keypad. The keypad comprises of 16 keys, numbered 0 to 9, *, #, A, B, C, and D.

  Create a map that contains an individuals jnumber

Write a program that illustrates you knowledge of maps and files. Create a map that contains an individuals Jnumber and their names.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd