answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How many radians are equivalent to 210 degrees?

since 1 radian = 180/π degrees

210 degrees

= 210/180 * π radians

= 7/6 * π radians

= 3.665191429...

What you the difference between a program and an app?

Its Application, not app, app just sounds so..... I dont know... Anyway, a program could just be a command line utility or any executable code basically. An Application is generally a complete bundle, with a GUI, etc. Every application has an executable program somewhere inside though, along with the images, sounds, etc.

Why has the advent of graphical user interfaces influenced the shift from procedural programming to object oriented event driven programming?

Simply because, GUIs can be of any level of complexity. Elements such as buttons, links, etc all need to properly reference to different objects. If you click here, go there, if you click down there, go here, etc. It is like a very big, complex web. You can imagine that procedural code would make it very difficult to do anything that can grant the user the ability to press whatever they want whenever they want. That's why object oriented code is much more preferable.

What is lex in system software and assembly language programming subject in M.C.A?

M.C.A could be almost anything, maybe a name of a school or school department?

Lex (short for Lexical Analyzer)`is a specialized programming language that takes a set of specifications for how to scan text and find specific items in the text and generates C language source code that is compiled with other code to actually perform the work. The code generated can be used as part of a compilers lexical scan, scanning for specific words and symbols.

When interrupts occur which registers are pushed and popped from the stack?

The registers that are pushed and popped from the stack during interrupt servicing depend on the processor architecture and whether or not a specific register is used by the service routine.

Automatically pushed and popped registers include the program counter, flags, and (often) the accumulator. Manually pushed and popped registers include any others that are used, i.e. modified, by the routine. Some programmers push and pop all registers, but that can be unnecessary and wasteful (of time) if some registers are not modified.

Which year modern computer developed?

That depends on your definition of 'modern'.

Some of the first computers to hit the market (Sinclair ZX80, Acorn Atom) were expensive and had to be assembled by hand.

One of the first popular home computers was the Commodore 64.

'modern' is a vague term, so you'll need to be more specific.

When I rename a pdf document I get this message If you change the file name the file may become unusable?

It's simply telling you that any programs that use that particular file will no longer be able to find it. Changing the file name is usually harmless, but changing the file extension (.pdf) will mean that your PDF reader won't load the file when you double click it. Generally you should leave file extensions unchanged since it gives a hint to the operating system which type of file it is.

What are the different format of a assembly language program?

Another way of defining assembler is to call it chip set programming. Different chips set have different protocols but what you are doing is programming the hardest way you can

Programmers must be careful not to make syntax errors when writing pseudocode programs?

By their very nature, pseudo code programs are not compilable and do not conform to the exact syntax of the computer language used. Since they are not compiled there is no issue with syntax errors.

When translating from pseudo code to the target computer language is when one must be careful of the syntax, but not when writing pseudo code.

What are flowcharts used as tools for requirement modeling?

flowchart is a graphical representation of algorithm. it represents the algorithm or process, showing the steps as boxes of various kinds, and their order by connecting these with arrows. Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields. Flowcharts contain symbols, such as connectors, usually represented as circles, to represent converging paths in the flowchart.

some types of flowcharts:

  • Document flowcharts, showing controls over a document-flow through a system
  • Data flowcharts, showing controls over a data flows in a system
  • System flowcharts showing controls at a physical or resource level
  • Program flowchart, showing the controls in a program within a system

Source code of text editor with compiler?

Check out open source sites, such as FreshMeat or SourceForge, or the GNU project.

Programming language suitable for commercial applications is?

Any computer language may be suitable for commercial applications if the language is a good fit for the problem it is to solve.

Ultimately, however, it doesn't matter to the end user because they usually don't see or care what the actual programming language was.

What is as400 system?

AS400 is now called as IBMi Series. they are the midrange computers launched by IBM.

IBMi Series is used by a few companies for mission-critical systems specific to industries in which reliability and stability are required.

Maintec provides end-to-end IBMi Services, Contact us today!

Is an operating system responsible for managing processor time and memory allocation?

The processor time is a function of the processor. The memory allocation is a function of the operating system.

WAP in java to search for a given number using linear search?

// This method will search through nums for target.

// It will return the index of target in nums, or -1 if target is not in nums.

public static int search(final int target, final int[] nums) {

// Linear search means start at one end and search element-by-element

for(int i = 0; i < nums.length; ++i) {

if(nums[i] == target) {

return i;

}

}

return -1;

}

What is the difference between a compiler and an interpreter.explain with examples?

The primary difference between them goes like this:

  • A compiler takes the program code you've written and processes it into native machine code. Once this process is completed, you end up with a compiled object that can be further processed into a complete executable program. This compiled program is separate from the source code you still possess: completely in machine-native code. Since it's been hard-set with the instructions it has to do, compiled programs are fast, but they can't be changed without recompiling them.
  • An interpreter takes the program code you've written and walks through it, step by step, handling each instruction on the fly: as it goes. The interpreter does all the machine-related stuff. It must keep reading the source code throughout the procedure since it does not produce a machine-native program from the source. Interpreted programs are easy to edit and adjust since there are no intervening steps between code writing and execution, but the very nature of instruction interpretation and having to deal with syntactical nuances every time the program is run tends to slow down the execution.

Perhaps the best real-world way to relate the difference is to picture yourself holding two different sets of instructions. One set is instructions on how to do a task. In this case, you're interpreting the instructions and doing the job yourself. The other set is instructions on how to build (compile) a machine to do the same task. Now you're compiling the instructions into a separate final object (the machine) that can now do the same job on its own. The pros and cons are evident here as well. As an interpreter, it's easy enough for you to alter the instructions so as to do something else. But once the machine is compiled, its function can't be changed. You'll need to alter the instructions and build a new machine.

What is the responsibility of a scientist?

to study the pyhsical world

to answer scientific questions accurately

How do you enter 10 rem guesing game 20 let n equal 50 30 input guess a number from 1 to 100 ecxetera to make it a guessing game computer program?

Well first you need to know what language you need to use, a compiler, and not use bad variables like 'n'.... heres a C++ program i wrote... not completely done yet though. You need to know what a do/while loop is, if statement, while loop, maybe a for loop, need to know how to use char, know how to generate a "random" number, the output, input stream, and how to declare a variable. pretty basic stuff.

/*

Guessing Game

Idiot Proof for numbers out of bounds

Throws up when characters are entered for integer input

Asks user if they want to play the game successfully.

Loops back after game is over asking if user wants to play again.

Randomized numbers

*/

#include <cstdlib>

#include <iostream>

using namespace std;

int main()

{

char play;

cout << "Want to play guessing game? Y/N" <<endl;

cin >> play;

// looping the guessing game for confirming if user wanted to play

while ((play 'y'));

}

return EXIT_SUCCESS;

}

What are the advantages of local variables in programming?

1. Local variables cannot be used by other forms.

2. Cannot be used globally.

3. They can slowdown the compiling process.

What are WAN management issues?

Wide area network is the full term for WAN. The information specialist must manage the resources of the network to ensure the network does not get bogged down.