answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Is NET in support of object oriented language?

Yes, every language supported by Microsoft and on the .NET framework is an object oriented language. (OOP)

What do you do if you have a corrupt game save data?

You must look for the game save file. Eg. new super Mario bros.SAV look for the one with the .sav extension. That is the corrupt save file. All you need to do is delete this . When you play the game it will create another save to replace the corrupt one . You will lose your save games

Characteristics of an algorithm?

An algorithm is written in simple English and is not a formal document. An algorithm must:

- be lucid, precise and unambiguous

- give the correct solution in all cases

- eventually end

Also note it is important to use indentation when writing solution algorithm because it helps to differentiate between the different control structures.

1) Finiteness: - an algorithm terminates after a finite numbers of steps. 2) Definiteness: - each step in algorithm is unambiguous. This means that the action specified by the step cannot be interpreted (explain the meaning of) in multiple ways & can be performed without any confusion. 3) Input:- an algorithm accepts zero or more inputs 4) Output:- it produces at least one output. 5) Effectiveness:- it consists of basic instructions that are realizable. This means that the instructions can be performed by using the given inputs in a finite amount of time.

Write an 8086 assembly language program to compare if two strings are of the same length?

org 100h

.data

str1 db "Computer"

str2 db "computer"

mes1 db "string are same $"

mes2 db "string are different $"

.code

assume cs:code,ds:data

start: mov ax,@data

mov ds,ax

mov es,ax

mov si,offset str1

mov di,offset str2

cld

mov cx,8

repe cmpsb

mov ah,9

jz skip

lea dx,mes2

jmp over

skip: lea dx,mes1

over: int 21h

mov ax,4c00h

int 21h

end start

ret

Write a program to make a triangle?

To draw a random triangle.... Declare six variables.... H1 and V1 H2 and V2 H3 and V3 Then using the random function apply the random to the height of your form - this will be H1 Do the same with the width of the form - this will be V1 -- do this twice more, for H2 and V2 - and then for H3 and V3.. Then draw a line from (H1, V1) to (H2, V2) Draw another line from (H1, V1) to (H3, V3) Draw the last line from (H2, V2) to (H3, V3) -- I can't guarantee it will look great, but it _will_ be a triangle. ==== To draw a specific triangle you need much more coding, involving sine rule an other trigonometry.

How do programmers tackle a programming project?

Inch by inch, it's a cinch. Schuller, Robert H.

I'm the coder, designer, decision-maker...everything...for my own android projects...

"You will face those situations only which you can face...so if got a difficult situation..feel proud..."

My fav drink is thumbs up...lolzzz....

What are the advantages of Geographic information system?

More and more states in the United States are requiring a 4 year degree to be a licensed surveyor. Geomatics is a broad field which encompasses land surveying, remote sensing, Geographic information Systems, Global Positioning Systems and related forms of mapping. All of this is part and parcel of the job of a land surveyor. Land surveying is no longer the Red Headed Step Child of Civil Engineering. It is now a unique discipline that encompasses measuring, mapping, and legal opinions. A geomatics degree will better prepare the professional for the career that is in store for him or her. You learn the why's not just the how to's of the job through the geomatics degree. That is the difference between a professional and a technician.

What do programming tools do?

Programming tools assist in the development of software. The most basic programming tool is the integrated development environment (IDE) which will include one or more code editors and resource editors, as well as file-management and debugging tools. Programmers can choose to use the built-in tools provided by the IDE or they choose to use external utilities and programming tools, such as help file authoring suites and more advanced resource editors and debugging utilities, many of which can be integrated into the IDE itself.

Applets are written in what programming language?

There are many types of applets, and they can be written in many different languages, but you're probably referring to the most widely known Java applets.

So, they're written in a programming language called Java.

What are the classification of programming languages differentiate each?

Imperative languages, also called algorithmic languages, are probably

the most prevalent among the programming language paradigms today.

Their programs are constructed as algorithms or as sequences of

executable instructions.

These languages are greatly concerned with variables and include

commands for sequentially allocating memory space or CPU locations to

these variables and for correspondingly changing their values through

assignment statements or procedure execution.

The three main categories of imperative languages are as follows:

· Block-Structured or Procedural Languages - These languages are

process or "how" oriented. Their basic unit of modularization is the

function or the procedure. A modular unit is comprised of a set of

data declarations and statements. Examples: ALGOL, Pascal,

Modula-2, Ada, and C.

· Object-Oriented Languages - These languages are data or "what"

centered and implement the principle of program decomposition,

data abstraction, and information hiding. They are based on the

fundamental concept of objects. Examples: Smalltalk, C++, Java,

and Visual Basic.

· Distributed Programming Languages - These languages support

more than one processor working either simultaneously or

alternately with other processors in order to complete a task or to

solve a problem.

Declarative languages are those based on relations or functions. Theyinclude facilities for writing declarations or truths. Compared to

imperative languages, they are considered to have higher level than the

former since they work around concepts and not with a machine's

storage locations.

The three main categories of declarative languages are as follows:

· Functional or Applicative Languages - These languages consider

the function as their major organizing principle. Examples: LISP,

APL, and ML.

· Logic Programming - These languages describe computing

problems in the form of predicate logic statements. PROLOG is the

first thing that comes to mind when talking about logic programming.

· Languages for Databases - Languages that support databases

include facilities for accessing/selecting data from database entities,

and describing relationships between data entities. Example: SQL.

What is strong-typing versus weak-typing?

Strong-typing vs Weak-typing

Weak typing is where a language allows you to treat blocks of memory defined as one type as another (casting). Languages like C and C++, although statically typed, are weakly typed.

Languages like Perl and PHP are weakly typed because you can do things like adding numbers to strings and the language will do an implicit coercion for you.

Languages like Java, C# and Python are strongly typed - there is no way you can add a number to a string without doing an explicit conversion.

In addition, there are many large systems that have been created with dynamic type systems. Catching type errors (typos) at compile time only catches a very small proportion of errors and a strong testing strategy produces much more reliable systems irrespective of the type system in use.

Strong type is checking the types of variables at compile time. weak typing is checking the types of the system at run-time. For scripts & quick stuff we'll use weak typing, In big programs, strong typing can reduce errors at compile time

The above answer is not 100% correct. C++ doesn't allow for an integer (int) to be added to a string, unless you mean appending. In which case, C# and Java behave in similar fashion by doing an implicit conversion. For a better answer see the answer to "Strongly typed programming language" in this site.

Juan R

--------------------------------------------------------------------------------------------------------------

Strong typing provides greater type safety. You might have specially heard it about DataSets being strongly typed, where instead of referring columns as datacolumns(index).value, you create an XML schema from which you make a dataset derived class. Strong typing is preferred as there remains no type ambiguity. Another example is, turning on Option strict in VB, where you have to do explicit type casts.Instead of running into situation where you get a type that you did not expect and try performing an operation on it, you go for strong typing so that such errors are caught during compile time itself.

--------------------------------------------------------------------------------------------------------------

strong typelanguage specication requires its typing rules strongly (i.e. more or less allowing only those automatic type conversions which do not lose information),

one can refer to the process as strongly typed, if not, as weakly typed.

example in c language

int a;

float b, c;

b=2.2;

c=3.3;

a=b+c;// here we are losing data result is 5 instead of 5.5 because a is an integer

cout<

here ouptput 5.

if language do not allow to automatic type conversion then it should be strongly type otherwise it is weakly typed.

dynamic type:- if compiler know information about the type of variable or data at run time then it is called dynamic type.

static type:- if complier get information about type of variable or data at compile time then it is called static type.

What the term Variable means?

In math, a variable means something in an equation whose numerical value is not defined. In science, it refers to the things in an experiment that are manipulated by the experimenter. In computer science, a variable is a name that points to a storage location.

What are steps of algorithm?

the number of steps of an algorithm will be countable and finite.

Is there any program used to create c plus plus program?

There are several: an editor, a compiler and linker being the three main programs. Typically you will install an integrated development environment (IDE) that includes all three plus project management and debugging utilities, help compilers, installation helpers, and a raft of plug-ins to suit the platform you are developing for.

How do you design a program that asks the user to enter 10 golf score in python that should be stored in an integer array and sorted in ascending order?

/////////START OF PROGRAM/////////// //the main module Module Main() //declare constant variable Constant Integer SIZE=10 Constant String DAY=10 Set DAY[1] = first Set DAY[2] = second Set DAY[3] = third Set DAY[4] = forth Set DAY[5] = fifth Set DAY[6] = sixth Set DAY[7] = seventh Set DAY[8] = eighth Set DAY[9] = ninth Set DAY[10] = tenth //global variables Declare Integer scores[SIZE] Declare String scores[DAY] Declare Integer index //body of the module //sets the constants in the scores array to 1 Set scores[DAY=1] Set scores Do Display "Please enter the ", scores[DAY]," golf score :" Set scores[DAY+1] Input scores[SIZE+1] until scores[SIZE==10] End Do //calls the insertionSort module Call insertionSort(scores, SIZE) //display the scores sorted ascendedly Display "You golf scores sorted ascendedly are: " For index = 0 to SIZE - 1 Display scores[index] End For End Module

Which username must generally perform system administration tasks in Unix?

System administration tasks must generally be performed by the 'Administrator' username. This is the default name but it may changed in user accounts settings.

What is the power saving mode on your computer called?

  1. run, the computer is doing calculations normally (maximum power consumption)
  2. sleep, the computer is not doing calculations but maintains DRAM refresh to retain data internally (low power consumption)
  3. hibernate, the computer is not doing calculation but saved DRAM to a disk file so that DRAM refresh can also be stopped (minimal power consumption, often the computer actually turns off in this mode)

How to convert From human language to computer language?

Depending on what you're looking at, you may not be able to. My suggestions would be to find the appropriate program used to edit the type of file you're looking at, or to try to find a decompiler for the programming language the file corresponds to.

How was the concept of the Internet developed?

The concept of the Internet was developed during the Cold War. It was meant as a way for scientists and other "important" people to be able to connect and communicate using high-speed lines, no matter where they were.

What is purpose of computer programming?

A computer programmer is responsible for ensuring that computer applications operate properly. The programmer creates programs for use in computers across all platforms.

How many bytes in long?

The set of datatypes and the definition of each member is dependent on hardware, the language standard, and the language implementation. Not knowing which language the question relates to is particularly limiting.

In Java, a long consists of 8 bytes. This is also generally true for C and C++, depending upon the compiler used. See the related links for further details.