answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How do you get rid of vista?

Format the drive and install a new operating system in its place.

How do you split your harddrive into 2 segments?

Called "partitioning" ... usually done during total format of the drive. The user specifies how much of the diskspace gets dedicated in each partition.

Answer B

Go to Start>Administrative tools>Nr2 something with computer>Then reduce the volume on the first u got there then create a new volume and add the space to it.

What is object linker?

In computer science, a linker or link editor is a program that takes one or more objects generated by a compiler and combines them into a single executable program.

http://en.wikipedia.org/wiki/Linker

This is a response to the question, "What is object linker?". The appropriate question would have been, "What is a linker or link editor in the field of Computer Science and Software Engineering?". Note that a linker is called a loader when it refers to a run-time process. Linkers refer to compile-time processes.

What are the various operations in linked list which can be performed on linked list?

In linked list, there are various operations in linked list that you can perform on linked list, eg: adding new elements, deleting elements, getting the first element, getting the next element after an element, any many others.

What are the advantages and disadvantages of Solid modeling?

Solid modeling is advantageous because it is unambiguous, gives tremendous information and is best suitable for calculating properties. The disadvantage is that it requires large memory and inhibits fast manipulation.

What is the purpose of the AzCIS program?

To help people access current, accurate, and high quality career information, assessment, and planning tools for promoting career development for a lifetime.

Can stack be called fifo data structure?

No. A stack is a LIFO (Last In First Out) data structure.

A queue is a FIFO (First In First Out) data structure.

Why main method only called by jvm why not any other our own static method?

At the time of developing jvm the development team by default make a only one method call i.e; 'main' method call in the jvm that's why when the call is loading into the jvm the jvm call the main method...and execution was starts..

Who is the father of information processing?

Herman Hollerith who developed the first mechanical tabulating system in 1890 (approximately).

What will be the MIPS code to find factorial of a number?

.data 0x10010000
fact: .space 4
.text
.globl main

main: addu $s0, $ra, $0
lui $s1,0x1001
ori $t0,$0,12
ori $t4,$0,1
addi $t1,$t0,-1
mul $t3,$t1,$t0

loop: beq $t1,$t4,slese
addi $t1,$t1,-1
mul $t3,$t3,$t1
j loop

slese: sw $t3,0($s1)
addu $ra,$0,$s0
jr $ra

What are the differences between Stack Arrays Queues tabular Form?

Array: A contiguous block of memory. When you know the position of the nth element of an array, you know that the elements at n+1 and n-1 are very nearby in memory.

Stack: A first-in-last-out data structure. A stack can be backed by most generic data structures (even arrays), but the linked-list type seems to be most common. You can think of a stack like a stack of playing cards. You can put a bunch of cards facedown on a table, and when you draw from the stack, you can only take the topmost card. The "first-in-last-out" means that the card that you put down first can't be removed until you remove all cards on top of it.

Queue: A first-in-first-out data structure. Very similar to a stack in regards to data storage. Think of this one like a line of people. The first person in the line is the first one to get out of it, and everyone behind them has to wait their turn.

Write a program in 'C' to find perfect number?

#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,sum;

clrscr();

for(i=1;i<=500;i++)

{

j=1;

sum=0;

while(j<i)

{

if(i%j==0)

sum=sum+j;

j++;

}

if(sum==i)

printf("%d\n",i);

}

getch();

}

Write a program to generate CRC?

/*

written by: Bibhakar Jha;

objective : to implement CRC in c programming language;

*/

//Program code to add CRC check bit

#include

#include

#define N strlen(g)

char t[28],cs[28],g[]="10001000000100001";

int a,e,c;

void xor()

{

for(c = 1;c < N; c++)

cs[c] = (( cs[c] == g[c])?'0':'1');

}

void crc()

{

for(e=0;e

cs[e]=t[e];

do{

if(cs[0]=='1')

xor();

for(c=0;c

cs[c]=cs[c+1];

cs[c]=t[e++];

}while(e<=a+N-1);

}

int main()

{

clrscr();

printf("\nEnter data : ");

scanf("%s",t);

printf("\n----------------------------------------");

printf("\nGeneratng polynomial : %s",g);

a=strlen(t);

for(e=a;e

t[e]='0';

printf("\n----------------------------------------");

printf("\nModified data is : %s",t);

printf("\n----------------------------------------");

crc();

printf("\nChecksum is : %s",cs);

for(e=a;e

t[e]=cs[e-a];

printf("\n----------------------------------------");

printf("\nFinal codeword is : %s",t);

printf("\n----------------------------------------");

printf("\nTest error detection 0(yes) 1(no)? : ");

scanf("%d",&e);

if(e==0)

{

do{

printf("\nEnter the position where error is to be inserted : ");

scanf("%d",&e);

}while(e==0 e>a+N-1);

t[e-1]=(t[e-1]=='0')?'1':'0';

printf("\n----------------------------------------");

printf("\nErroneous data : %s\n",t);

}

crc();

for(e=0;(e

if(e

printf("\nError detected\n\n");

else

printf("\nNo error detected\n\n");

printf("\n----------------------------------------\n");

getch();

return 0;

}

What is meta messages?

Metamessages are the way men and women communicate with each other. It is the way they are receiving the message that leads it to the reaction. Example, women always say "Im fine" but in reality we are not okay, it just means we want our partner to discuss more into the situation but the problem is that not all men understand that and they will simply accept when the girl says "I'm fine"

What is arp -a?

The Windows command arp stands for address resolution protocol which simply transforms an IP address to its corresponding physical network address.

And 'arp -a' simply lists down the physical network addresses of the network devices connected to the current PC.

What does a mock object mean in programming?

Mock objects are simulted objects that mimic behavior of real objects. They can have the same controlled variables with each other and are used everyday in programming.

What is WPF?

WPF stands for Windows Presentation Foundation and it is essentially a new API for creating a graphical user interfaces for the Windows platform. It provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic. WPF employs the use of 2D and 3D drawing, fixed and adaptive documents, advanced typography, vector graphics,raster graphics, animation, data binding, audio and video thanks to the presence of DirectX in one of the lower levels of its architecture. WPF comes pre-installed on Windows Vista and i based on .NET 3.0. Although like its predecessor, WinForms, it too incorporates the use of buttons, combo-boxes, list-boxes etc, instead of using a designer generated code file or a resource file as the source of a UI definition, it makes use of XAML (Extensible Application Markup Language) which is a unique way of including code in a mark up.

PS: I apologize if this answer seems inadequate for i answered only because of the statement : Even if you can't offer a complete answer, help us get things started

If you are interested in WPF, also check out the Silverlight which is a cross-browser, cross platform plugin, that provides rich web based content to your browser. Silverlight is basically the web implementation of WPF.

Cursor implementation of c program?

#include<stdio.h>

#include<conio.h>

#include"curslist.h"

void main()

{

LIST L=-1;

POSITION P;

int choice,place,x;

clrscr();

printf("\n1.Create\n2.Insert\n3.Delete\n4.MakeEmpty\n5.Display\n6.Find\n7.Exit");

A:

printf("\nEnter ur choice:\t");

scanf("%d",&choice);

switch(choice)

{

case 1:

if(L==-1)

{

InitializeCursor();

L=CursorAlloc();

}

else

printf("\nList is already created");

break;

case 2:

if(L==-1)

printf("\nList is not yet initialized");

else

{

printf("\nWhere u want to insert?");

scanf("%d",&place);

printf("\nEnter the element to insert");

scanf("%d",&x);

Insert(x,place);

}

break;

case 3:

if(L==-1)

printf("\nList is not yet initialized");

else

{

printf("\nWhich element you want to delete?");

scanf("%d",&x);

Delete(x,L);

}

break;

case 4:

if(L==-1)

printf("\nList is not yet initialized");

else

MakeEmpty(L);

break;

case 5:

if(L==-1)

printf("\nList is not yet initialized");

else

Display();

break;

case 6:

if(L==-1)

printf("\nList is not yet initialized");

else

{

printf("\nWhich element you want to search?");

scanf("%d",&x);

P=Find(x,L);

printf("\nThe element is at %d",P);

}

break;

case 7:

exit(0);

default:

printf("\n *******WRONG ENTRY*******");

}

goto A;

}

Describe weakness of conventional system analysis and design methodology?

the weakness of conventional system analysis and design methodology are ;it is rigid and flexible ;it takes to long to deliver a working software for the client ;it does not allow for changing system requirements during system development ;end user are poorly consulted in determining requirements with the sdlc ;it does not allow backtracking to previous stages as it is too much time consuming and costly

Can array size be determined using sizeof operator in c?

Yes. The array name is a reference to the array, so you can use sizeof (name) / sizeof (name[0]) to determine the number of elements. Note that sizeof (name) alone gives the length of the array in bytes.

What was the first simulation program?

It is uncertain. The Manhattan project during WW2 ran simulations of various portions of the atomic bomb on: the Harvard Mark I and an improvised system of many dozens of IBM punchcard unit record machines, but although these were programmable digital computers they were not electronic computers. In December 1945 through January 1946 a full simulation of Edward Teller's Classical Super hydrogen bomb design was run on ENIAC showing it to be unworkable (this was likely the first simulation run on a programmable electronic digital computer). The purpose of ENIAC was specifically to simulate the firing of newly designed US Army artillery pieces to prepare Firing Tables to be used by soldiers on the battlefield, but it was not used for this purpose until later in 1946.
Long before digital computers existed analog computers were used to run simulations. One of these analog computers was the MIT Differential Analyzer built in 1929, it was fully programmable and could handle a wide variety of problems that could be solved using differential equations. Much of the design of ENIAC including its method of programming was copied from the Differential Analyzer but reimplemented digitally.