answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What aspect of BASIC was particularly frustrating to many computer users?

Different computers' versions had used completely different commands for routine things

What is a myth regarding electro static discharge?

if you can't feel ESD, the surge is not sufficient to harm components.

What is the first line of every FORTRAN program and what does it tell the compiler?

The name of the program. For example:

program sum

! This is a comment. Your program's code goes here...

end program sum

Description on compiler and assembler with block diagram and figures?

Most of the compiler's that are used to compile programs is coded with the old assembler language. Assembler is also the older language which is used in the old Mainframe environment

How do you change the contents of a cell to currency?

I'll assume your not talking about Excel. In ASP.Net, the string format is {0:c}. This will convert in numeric string value to currency Ex.: 12345.67 will become $12345.67

Who developed the Internet?

The Internet is based on technologies developed for ARPANET in the 1960s and 1970s by computer science researchers at many universities and research organizations. The ARPANET project was funded by the US Department of Defense.

What is the difference between an interface and an abstract class?

We can't instantiate both interfaces and abstract classes.

The only one difference between them is that an interface can't contain concrete(fully defined) methods where as an abstract class may contain them.

An abstract class not necessarily contain abstract methods. we can make a class as abstract class even it does not has any abstract methods.

When there is a need to write both abstract and concrete methods in a single unit we have to use an abstract class instead of an interface since an interface cant contain concrete methods.

All the fields(or properties) of an interface are by default 'static final' even when you don't mention explicitly. And all methods are 'public abstract'.

But in an abstract class we can have any type of fields and methods.

Which programs still use the software language Fortran?

There are very few programs which still use the software language Fortran as it considered 'dead' by many. That said, it is still used by those in numerical algorithms programming.

How do you point to the first node in a linked list?

The list itself should maintain a pointer to the first node in the list. If it is NULL, the list is empty.

What are the two main types of plotters?

Thers are two types of plotters, namely ,

(i) flat bed plotters, and

(ii) drum type plotters.

What is meant by inheritance?

In computer programming, inheritance means to derive a new object from an existing object, such that the new object inherits all the properties of the existing object. In object oriented programming, derived classes inherit the public and protected members of their base classes. This allows new classes to be created from existing classes, without the need to duplicate large chunks of code in the existing class. The new class can augment the inherited code to provide more specific behaviour.

Difference between event driven and procedural programming?

object oriented programming focuses on performing actions and manipulation of data that is encapsulated in objects within a sequential series of steps while event driven is more dynamic and relies on event triggering and event handling to determine the sequencing of the program.

Slogan for computer programming?

Ohhh, the f.f.u.u.c.c.k.k.i.i.n.n.g.g. blue screen......................................again.

Farewell speech to graduates by students?

A farewell speech to graduates that is given by other students is always a memorable thing. It is usually on the topic of the past four years and the future that the graduates are facing. The students will smile, cry, and reminisce about the lives as students and look forward to their lives as adults.

Average of 5 numbers in assembly?

.model small

.stack 100

.data

line1 db 03,12,15,14,01

avg db ?

.code

mov ax,@data

mov ds,ax

lea si,line1

mov cx,0005h

mov al,00+1 l1:add al,[si]

inc si

loop l1 mov ah,00h

mov bh,05h

div bh

mov [si],al

mov ah,4ch

int 21h

end

Mdi in vb stands for?

MDI means multiple document interface. This refers to an application in which all windows are contained by some parent window. The Visual Studio IDE is actually an example of this, as all windows you open while running it are children of the main IDE window.

How do you get rid of AIM hackers?

Change your password often, and make sure it's strong (mix of letters, numbers, and caps).

Print all prime numbers between two unknown numbers n and x?

#include<iostream>

#include<cmath>

#include<utility>

bool is_prime (const unsigned n) {

if (n<2) return false;

if (!(n%2)) return n==2;

unsigned max_factor=(unsigned)sqrt((double)n)+1;

for (unsigned factor=3; factor<max_factor; ++factor) {

if (!(n%factor)) return false;

}

return true;

}

void print_primes(const unsigned low, const unsigned high) {

for (int i=low; i<=high; ++i) {

if (is_prime (i)) std::cout<<i<<std::endl;

}

}

int main () {

unsigned n, x;

std::cout<<"Print prime numbers\nFrom: ";

std::cin>>n;

std::cout<<"To: ";

std::cin>>x;

if (x<n) std::swap(x,n);

print_primes (n, x);

}

Why keyword cannot be used as an identifier in c language?

It's by design; this way the lexical parser is able to decide that any given string is a keyword or an identifier.

How good was the performance on the old computers?

The average home computer was moderately fast but the parts inside were fairly large and there were cables and stuff everywhere inside making it harder for the motherboard to receive and send data to different components in the computer. The Eniac was a computer monster used in WWII couldn't do much but it was a jump in the technology that helped us get to where we are today.