What is the IEEE standard 32 bit floating point representation of the binary number -31.75?
answer is
0 10000011 00111000000000000000000
to get it first we have to convert 19.5 to binary
19 ->10011 ( 1* 2^4+1*2^3+1*2^2+1*2^1+1*2^0)
0.5-> 0.1 (2^-1=0.5)
10011+0.1=10011.1
The next step is to normalize this number so that only one non zero decimal place is in the number. To do this you must shift the decimal place4 positions to the left. The number4 becomes important so we note it. This process leaves us with the number 1.00111 which is the fraction that is represented in the last 23 bit places in the 32 bit binary. This is then padded with 0's to fill in the full 23 bits - leaving us with 00111000000000000000000.
so now we have first digit as 0 because this z a positive no and the last 23 digits.
We must now derive the middle 8 bits. To do this we take our exponent (4) and add 127 (the maximum number you can express with 8 bits (2^8-1 or the numbers 0 to 127)) which gives us 131. We then express this number as an 8 bit binary. This is 10000011 (or 1*2^7 + 1*2^1+ 1*2^0 or 128+2+1). Now we have the middle bits.
Taken as a whole our bit sequence will be:
0 10000011 00111000000000000000000
What is strongly typed programming language?
Yes, Python is strongly-typed.
You can test if any language is strongly-typed with a very simple example:
x = 1
y = "2"
z = x + y
The above will not compile in a strongly typed language because y is a string, not a number. That is, the language will not implicitly convert y to a number simply because you used it in a numeric expression. A weakly-linked language will perform the conversion behind the scenes.
Note that some strongly typed languages will permit the following:
value = 1
value = "one"
This is an example of dynamic typing; the same variable has explicitly changed type. This is not possible with statically typed languages. However, dynamic typing does not imply weak typing. Dynamic typing is explicit, weak typing is not.
C program without main functoin?
If we save our program with .c extention before compiling it, the compiler with automatically include the header files. for eg-
First we save our program with sum.c and then compile it. It will not show any error.
1. Compilation needs header files, not execution.
2. Very small example programs can be written without using any header file, eg:
/* mini.c */
extern void (const char *puts);
int main (void)
{
puts ("Hello, world");
return 0;
}
What are the functions of lexical analyzer?
The lexical analyzer function, named after rule declarations, recognizes tokens from the input stream and returns them to the parser.
What is the primary benefit of byte code?
The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.
The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.
The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.
The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.
You get two or three different steroids and rotate what days you take them. For example you might take 1CC of Winstrol on Tuesday and Thursday and take 1CC of Deca on sunday. When you stack it just means you are doing more than one cycle at a time.
Data is everything, the quesiton you asked consisted of data.
data is the entity on which programs written or work. like library systems it is student details, book details on which program works.
Abap Program To find Factorial of number?
report zbharath.
data:num type i value 5,
fac type i value 0.
perform fact using num changing fac.
write:/ 'factorial of',num,'is',fac.
form fact.
using value(f-num) type i.
changing f-fact type i.
f-fact=1.
while f-num ge 1.
f-fact=f-fact*f-num.
f-num=f-num-1.
endwhile.
endform.
What science is used in computer programming?
Computer programming relies heavily on the mathematical sciences, particularly discrete mathematics. The scientific method is often employed to test and debug computer programs. Knowledge of other sciences, such as physics or a particular social science, may be useful in computer programming depending on the specific software being programmed.
What other jobs are there like computer programming?
Very few as programming is a mixed art. It requires problem solving using logic. As well as using more artistic and creative understandings to accomplish various goals of a program. It's like being a mathematician and the conductor of an orchestra rolled into 1.
As a friend once told me, it's like being god. You make something out of nothing. Not too many jobs out there do that.
At least four differences between command line interface and graphical user interface?
The command line interface is just a type of GUI (Graphical User Interface) ie. windows 2000, xp, vista, 7. They all look different because of the different GUIs.
CLI(Command Line Interface) is more advanced, beginner users may struggle to use a CLI
GUI(Graphical User Interface) is more user friendly with graphics allowing mouse clicks etc.
CLI uses less computer resources due to being a simple command line so has its advantages over GUI.
GUI hogs more computer resources due to graphics etc.
CLI can be used to do more advanced commands and do alot of very technical processes.
GUI is very secure and offers users the things they need in plain site, point and click.
In C plus plus What symbol is used to denote the declaration of a dynamic array?
We don't generally use dynamic arrays in C++, we use vectors instead. The problem with dynamic arrays is that we must keep track of how many elements are allocated in the array, and must manually manage the memory allocated to the array, just as we do in C. Vectors do this automatically for us and allow us to pass dynamic arrays into functions by reference. This ultimately makes it much easier to use a dynamic array without having to worry about how it is physically implemented.
Programming language compilers are application programs. In some publications, however, the term system software also includes software development tools (like a compiler, linker or debugger).
Is it possible to declare a variable in a method and use it in a main?
Yes you can and they are known as inner methods. You can even delcare an inner class and methods on it. However, if you want your classess accessible from multiple programs (reusability), then you should not use this practice. This type of facility is useful when you know for sure that your class or method is going to be used only once.
Why programming language is invented?
As a CPU only processes written in machine language (binary) programming languages, which uses words instead of numbers is the reason that programming languages were invented. It allows programmers to write application in programming language statements that then uses special software to convert the program into machine language. (Gaddis, Tony, Irvine, Kip; Starting out with visual basic, 2005)
What d you do if the code file for Pokemon pearl is corrupt?
If you have a gameshark, there is a code to rebuild your game.
Write a simple java program using exceptions?
Here's a Hello World application:
import static java.lang.System.out;
class HelloWorld
{
public static void main(string[] arguments)
{
out.println("Hello world!") //this will print out the words 'Hello world!' to the screen
} //End of main method
} //End of class HelloWorld
What are the purpose of an algorithm?
As described in the link, an algorithm (the word is based on the name of the Arabic scholar who developed the concept) is a finite list of steps that can be taken in order to solve a specific problem or to produce a certain result. It is important to note that an algorithm does not put you into an infinite loop. There is a path to a final conclusion. It was first developed as a set of procedures for doing arithmetic calculations. Algorithms can be pictured with familiar symbols (see link) like boxes, diamond shapes, circles, etc. connected by arrows showing various points of decision making, and what conclusions can be drawn if you end up at a given point (presuming you followed the 'flow' correctly, and answered the questions accurately-- and also presuming that the algorithm is rigorous.) Of course, the concept is easily applicable to all kinds of engineering and theoretical areas. Algorithms are 'heuristic', meaning that they are seen as basically unjustified, and incapable of justification in and of themselves. This is really a basic and very powerful idea. Heuristics are completely flexible, and they can grow and change as the various conclusions and outcomes are examined. nice answer
#! /usr/bin/env ruby
n = gets.to_i
d = 'is not'
d = 'is' if n % 7 == 0
puts 'Your number ' + d + ' divisible by seven.'
For more accurate answer, please define the programming/script language you plan to use..
What is an example of virtual storefront?
Virtual storefront form of interactive media/electronic marketing that allows customers to view and order merchandise on their computer screens. In a virtual storefront, customers can read about the history of the product, browse through product offerings, and place orders, all through the touch of the keyboard and mouse on their computers.
What is the purpose of a procedural programming?
A procedural language is a programming language in which everything is processed in the order it appears to the computer. A computer programming language that follows, in order, a set of commands. In contrast, an object-oriented language is a language in which everything is processed depending on what happens in the program -- user input, errors, or other events. PHP is both a procedural and object-oriented language, depending on the way it is used
Name the three most popular manufacturers of the system BIOS programs?
Gateway, HiPPo, and Trenolagor.
According to "Guide to managing and maintaining your PC" by Jean Andrews the three most common are as follows:
1. AMI BIOS
2. Award BIOS
2. Phoenix BIOS
Not True. Phoenix Technologies makes the Award and Phoenix BIOS.
This is more accurate:
1. Amercian Megatrends
2. IBM
3. Phoenix Technologies
In which cases should you use the far pointers?
Far pointers are generally used with 16 bit windows application. You can also use for DOS based application for accessing VDU memory since it has huge pointer and it can be fit into the far pointers.
Well, Win32 does not distinguish between near and far addresses. Because the types NEAR and FAR are defined in WINDEF.H, they are automatically handled by the include file, which redefines them as empty strings for Win32. Thus, NEAR and FAR are ignored. If you do not include WINDEF.H, a convenient solution is to use the /D command-line option to replace the keywords by empty strings. For example:
/D_near= /D_far= /D__near= /D__far=
The increased address-space size in 32-bit Windows impacts 16-bit code in several ways:
Pointers are all 32 bits wide and are no longer near or far, and your code cannot make assumptions based on segmented memory. Window handles, handles to other objects (such as pens, brushes, and menus), and graphics coordinates have increased to 32 bits. Thus, you cannot use types such as WORD interchangeably with HWND as you could in 16-bit Windows. Message handlers must be rewritten because the different sizes can change the way information is packed in some message parameters. The larger size of graphics coordinates affects a number of function calls. The key areas of 16-bit code affected by these changes are:
Window procedure declarations, Near and far type declarations, Data types, Messages, Calls to API functions, WinMain function
Linker and loader in c language?
There is no such thing in the C language, but it is true that operating systems have a component called loader which loads binary program-files (whose source may be written in C language) into the memory and prepares them to the execution.
How do you print 1 to 100 without using loop in c?
You can use recursion:
void printNum(int i)
{ if(i <= 100)
{ printf("%d\n", i);
printNum(i + 1); } }
int main()
{
printNum(1);
return 0;
}