How do you make a batch file to delete all files and folders in a particular folder?
The command is as follows :
del c:\[directory you want to delete] /s
This would need to be in a text file created in notepad, and saved as a .bat file. Or you could type EDIT from the command line to bring up the old DOS editor.
Improving answer: Step 1: Open up Notepad Step 2: Type the following code in: @echo off deltree [Your hard drive, usually C:]\[Directory you want to delete /s for quietly Step 3: Save as "whateveryouwantwithoutquotes.bat"
How do you program a computer?
On one level you talk to a computer through input devices and output devices.
Examples of input devices are keyboards, mice, disk drives, cameras, microphones, and internet ports.
These inputs are sent to programs. Essentially instructions written by programmers telling the computer hardware what to do. The programs may gather input from from input devices and then output that data to output devices.
Examples of output devices are screens, speakers, and internet ports.
Ha Ha HA seadecklis
What is the advantage and disadvantage of assembly language?
Assembly language is a symbolic representation of a processor's native code. Using machine code allows the programmer to control precisely what the processor does. It offers a great deal of power to use all of the features of the processor. The resulting program is normally very fast and very compact. In small programs it is also very predictable. Timings, for example, can be calculated very precisely and program flow is easily controlled. It is often used for small, real time applications. However, the programmer needs to have a good understanding of the hardware being used. As programs become larger, assembly language get very cumbersome. Maintenance of assembly language is notoriously difficult, especially if another programmer is brought in to carry out modifications after the code has been written. Assembly langauge also has no support of an operating system, nor does it have any complex instructions. Storing and retrieving data is a simple task with high level languages; assembly needs the whole process to be programmed step by step. Mathmatical processes also have to be performed with binary addition and subtraction when using assembly which can get very complex. Finally, every processor has its own assembly language. Use a new processor and you need to learn a new language each time. Assembly is a great language to use for certain applications, rotten for others and never for the faint hearted.
Write a java program to check a number is Armstrong number?
import java.io.*;
public class Jerry
{
public static void main(String as[]) throws IOException
{
int k=Integer.parseInt(as[0]);
int n=k;
int d=0,s=0;
while(n>0)
{
d=n%10;
s=s+(d*d*d);
n=n/10;
}
if(k==s)
System.out.println("Armstrong number");
else
System.out.println("not Armstrong number");
}
}
BIOS = Basic Input Output System
CMOS = Copper-Metal Oxide Semiconductor
BIOS is the interface which is built-in to a computer system's firmware used to configure the computer system hardware in very basic ways. BIOS can be used to enable or disable hardware integrated into the motherboard such as IDE controllers, USB hosts, audio controllers, video, and more.
It is often accessed by pressing F2 during startup, but this can change from manufacturer to manufacturer.
CMOS is a type of circuitry often powered by a battery which allows the information in BIOS to be stored. If the CMOS battery is drained or removed all the system configuration data in BIOS will be reset to factory defaults every time the computer is shut off. These small batteries are also commonly used in calculators, hearing aides, and wristwatches.
Due to the close relationship between the BIOS and the CMOS in the computer system, the two phrases are often incorrectly used as synonyms for each other. Some users will refer to opening the BIOS menu as "going into CMOS" or replacing the CMOS battery as "fixing the BIOS battery." However, none of this is seen as grammatically incorrect in common day-to-day conversation.
Who invented the binary decimal system?
I don't believe anyone suggested it, certainly no-one that could be named at least. Long before we had digital computers we had machines that were fully capable of processing binary information. The Jacquard loom is a prime example which pre-dates Charles Babbage's early computer designs. Although Babbage dabbled with decimal machines, even he saw the benefits of using binary; by far the simplest method of implementing a numeric system at the machine level.
When you delete a file from your computer the file is not really deleted, it is merely left there & the space it occupies is made available to be written over.
'Oops' is a program that allows you to call up deleted files & by restoring the name of the file to the original name (by the addition of the first character of the original name) rewrites them to disc.
e.g. Original file name was backup.exe. when file is deleted it becomes _ackup.exe
when using 'oops' you simply put the 'b' on to the deleted & it is restored. Object Oriented Programming System
Definition of merge sort in data structure?
we can sort unordered list to order list. we fallow a mechanism given list divided into two parts take one-one part ordered them
An abstract class is a class that cannot be directly instantiated. The purpose of such a class is to put some logic in a base class and force derived classes to implement the remaining functionality. Since the full functionality is only available in the derived class, the base class is declared as abstract so that it cannot be instantiated directly.
How do you append an item into an array using c?
It is possible, if it is a dynamically allocated array:
int n= 0; Elem *p= NULL;
...
AddElem (Elem newval)
{
n += 1; p = (Elem *)realloc (p, n*sizeof (Elem));
p[n-1] = newval;
}
Difference between top down and bottom up approach?
top down:
You formulate the problem and solve it inroducing simple operations, for instance, you need to add 2 numbers. This is your problem which you have to solve.
You devide it in simpler problems. Remember in computer memoty first additive, then second. And then add it to each other and show result or save in another variable and show the result.Top down approach is the most popular method in programming.
bottom up:
This method is more complicated because it's not easy to formulate simple problems and end up with a global problem. In most cases bottom up is reversed to top down approach.
Yes. there is. a man named Jerimah Hacker made his own trail in the 1800's. he wrote it=down on a map for all to use.=
There are some difficulties that a programmer must overcome in writing an operating system . Following are the difficulties
How many characters in a terabyte?
According to the International System of Units: 1 terabyte (TB) = 10004 bytes (B) = 1012 B = 1,000,000,000,000 B
This is the definition used for hard drives, large data arrays, and other things this size. That is 1,000 times a gigabyte (GB) or 1,000,000 times a megabyte (MB), which is a million million bytes.
Among other things, a computer often uses one byte of space, in memory or on disk or tape, to represent one character (such as "c" or "&"). To think practically how much information a terabyte of disk space holds, let's assume we're storing text from magazine pages on a computer that does use one byte per character. At an average 5,000 characters per page, 1TB of disk space could hold 220 million pages of text!
(When referring to computer memory, 1000 is be replaced by 1024. This is because 1024 is the nearest power of 2 to a thousand. 1024 is 210. Memory does not exist in terabyte sizes, though, so "terabyte" always has the standard definition of 1,000,000,000,000 bytes.)
How do you add 2 numbers with register machine assembly language?
.model small
.stack
.data
.code
main proc
mov al,10
mov bl,15
add al, bl
start:
mov cx,8
mov bl,'1'
test bl,10000000b
mov ah,09h
int 21h
next:
shl bl,1
mov dl,1
mov ah,09h
int 21h
mov ah,4ch
int 21h
main endp
end start
end
Differentiate between overloading unary operator and overloading binary operator?
Unary operators declared as member function take NO arguments; if declared as global function, then take only one argument.
Binary operators declared as member functions take one argument; if declared as global function, then would take two arguments.
Note: The first argument for member function overloaded is always the class type; the class in which the operator is declared.
Is c plus plus is pure object oriented?
No. C is not object-oriented, it is a procedural language.
C++, while object-oriented, is not purelyobject-oriented. One of the requirements for a pure object-oriented language is that everything is an object. C++ still has primitive data types (int, long, double, etc.), and so is not purely object-oriented.
Time complexity of selection sort?
Merge sort (or mergesort) is an algorithm. Algorithms do not have running times since running times are determined by the algorithm's performance/complexity, the programming language used to implement the algorithm and the hardware the implementation is executed upon. When we speak of algorithm running times we are actually referring to the algorithm's performance/complexity, which is typically notated using Big O notation.
Mergesort has a worst, best and average case performance of O(n log n). The natural variant which exploits already-sorted runs has a best case performance of O(n). The worst case space complexity is O(n) auxiliary.
Assign the value of pie ie 3.142 to a variable with requisite data type?
float pi = 3.142; // Note: pi is an irrational number, there is no "exact" value of pi
What Programming language is one step above machine language?
I guess you're trying to refer to Assembly language.
how do i kno? i am the one who needs the answe,r so YOU answer it for me
THANK YOU and sorry:(
The programming language C is an enhanced version of the programming language C?
Yes, the C++ programming language is an enhanced version of the C programming language.
Of note: to increment a variable by 1 in C, you could type myInt++ (i.e. for(int i = 0; i < 1; i++). C++ was named C++ because it is one step above C (C + 1).
How many sides are on 7 decagons?
A decagon is a polygon with ten sides and ten angles. Therefore, seven decagons would have total of seventy sides and seventy angles.