answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is and gm and and gd in c program?

gd is graphics driver specifies which graphics driver to be used..... gm is graphics mode sets highest resolution for detected driver

When troubleshooting the problem scenarios during this lab which troubleshooting technique did you use primarily (top-down bottom-up or divide and conquer)?

Without knowing the problem scenarios it is impossible to know which troubleshooting technique you should have used. We can only answer questions that contain context. However, you are specifically being asked about which troubleshooting technique you personally used, not what technique you should have used, thus only you can actually answer the question. As such, this question adds no value.

What is altseq in dfsort?

ALTSEQ has two general uses: (1) change the normal sort EBCIDIC srt sequence to something else. Thus if you want (the manual's example) to change the sequence so that the symbol for dollar sign ($) sorts after upper case Z, you would code code ALTSEQ CODE=(5BEA). This literally means "place '5B' in front of 'EA'. The second useage is to translate a hex code for another. For example if I wanted to translate hex '00' to spaces ( hex '40') I would code ALTSEQ CODE=(0040) and use the TRAN=ALTSEQ in the OUREC statement. Check out Z/OS DFSORT Application Programming Guide p.90 and thereabouts.

Why is d use as a symbol in scientific notation?

It's a symbol for "deci" or one tenth of an length measurement. I decimeter is ten centimeters.

Is there software for making PS2 games or Wii Games or cellphone games etc?

Yes, game developers use special software in order to create video games. This software is usually designed by the company making the game.

Describe the difference between Interface-oriented Object-oriented and Aspect-oriented programming?

In object oriented programming cross cutting concerns cannot be implemented while in aspect-oriented these can be implemented easily, but if there is a logic mistake in implementing these cross-cutting concerns then the whole system will fail. In case of object-oriented whole system will not fail.(Excerpt from FrazzledDad blog @ http://frazzleddad.blogspot.com)Aspect-OrientedAspect-oriented programming looks at how many components or pieces of a system might need to interact. The intersections of these pieces are what are important in AOP. "Crosscutting" is a slice across several units, all of which interact during some operation. The article Discussing aspects of AOP in Communications of the ACM, Volume 44, Number 10 (2001) shows an example of a drawing editor with point and line elements. If the drawing is moved, both point and line elements need to update. A crosscut hits these elements for this event. Other examples might include logging or exception handling which hit several different layers in a system. (Viji Sarathy, Aspect Orienting .NET Components )Interface-OrientedInterface-oriented programming is a contract-based approach. Nether side of the interface cares how the other does its work, only that the two sides can communicate via an agreed-upon contract. WSDL-based web services are the prime example of this.Object-OrientedObject-Oriented programming is based on abstraction, encapsulation (data hiding), polymorphism and inheritance. Classes implement these concepts to build objects controlling or implementing a system.Abstraction allows loose coupling between components by providing a layer between objects so that one object isn't concerned with how the other implements its business rules. (Interfaces, layers) Great stuff when you want to isolate parts of the system so they can be swapped out without killing the rest of the sytsem.Encapsulation allows abstraction to work by hiding details of a class's implementation from calling classes. (Public vs. private fields)Inheritance enables base (parent) classes to have common functionality defined in it and passed down to child classes. A Shape class might have a field for color which is inherited by child classes of Square or Circle type.Polymorphism enables implementation of same-named public fields, allowing different classes to perform different actions on the same call - rendering a Square or Circle object differently in a graphic program, even though they might both be subclassed from a base Shape class. (Overriding)

Sort the following numbers 19 5 28 2 7 using bubble sort?

Passes:

bold are "sunk" into place

1: 5 19 2 7 28

2: 5 2 7 19 28

3: 2 5 7 19 28

4*: 2 5 7 19 28

*The last pass had no swaps, thus it breaks out of the sort

Efficiency: O(n^2) in random order O(n) when already sorted

What port does BOOTPS use?

The BOOTP protocol uses multiple protocols, starting with port 67.

What is the radix of the number if the solution to quadratic equation x2-10x plus 31 equals 0is x equals 5and x equals 8?

Solution:(5r0)2 - (1r1+0r0)*5 + 3r1+1r0 = (8r0)2 - (1r1+0r0)*8 + 3r1+1r0

25 - 5r + 3r + 1 = 64 - 8r + 3r + 1

3r - 39 = 0

r = 13

Result: radix r = 13

Which program translates an assembly language program into a high-level language?

A High level language is a language like C, Pascal, Fortran. To convert, the easiest way is to use a compiler.

A compiler will take the instructions written in a high level language and convert them into machine code which is the specific instruction set for that type of computer. Assembly language is just a human readable form of a machine code which is how the designers of the computer instruction set made it work.

A disassembler will show the assembly language from machine code. But the compiler usually includes a lot of optimisations from a the high level language and will not often generate very simple assembly.

What is an layout office?

Office Layout refers to the proper use of the available space in the arrangement of furniture and equipment in the office. This is important in order to increase efficiency, to make the most economical use of office space, and to increase the morale of workers.

What OS program do you need for a compaq laptop?

Windows or Linux.

Its a users option for this. Linux is free but Windows is more popular.

What is description of mechanism in technical writing?

A mechanism is generally defined as any object or system that has a functional part. It is an assembly of parts that operates in a definable way.

The main purpose of describing a mechanism is to make the audience see or visualize the object and to give an impression of the appearance of the mechanism. The appearance of the object is expressed by describing its shape, size, weight, color, texture and material from which it is made.

In describing a mechanism, the writer should be familiar with mechanism itself so that he can easily convey his message to the reader. His can use visual aids to help him communicate his message.

Describe how you could obtain a statistical profile of the amount of time spent by a program executing different sections of its code?

One could issue periodic timer interrupts and monitor what

instructions or what sections of code are currently executing when the

interrupts are delivered. A statistical profile of which pieces of code

were active should be consistent with the time spent by the program

in different sections of its code. Once such a statistical profile has been

obtained, the programmer could optimize those sections of code that are

consuming more of the CPU resources.

Do you need to know calculus to become a programmer?

I've never had to use calculus. Ever.

On the other hand I HAVE had to use lots of algebra, matrix transformations and trigonometry. 3D graphics is FULL of translational mathematics but it's all good fun.

+++

I do not doubt your particular experience but it would depend on what your programmes are for. If the application involves a lot of heavy-going calculus then obviously you'd need to understand the subject of the calculation and the necessary calculus, and how to turn it into computer code.

What is simple programming application?

One that can be written on the fly or require little or analysis.

What is figurative level of language?

Ther are 3 levels in language.These are as follows-

1)High level

2)Midile level

3)Lower level

What are pdp-10s?

They were DEC mainframes produced from 1966 until the early 80s. They were replaced by the DEC VAX.

Write a 8086 ALP that copies a string to another location in the memory?

Data Segment

string 1 db 'This is source $'

string2 db 15 dup()

Data Ends

Assume cs:code, ds:data

org 100h

Code segment

Mov AX, data

Mov DS, AX

Mov si, offset string1

Mov di, offset string2

Mov CX, 0015

MOVSB

Mov AX, 004ch

Int 21h

Code Ends

End