answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

A binary tree with 20 nodes has null branches equals?

A binary tree with n nodes has exactly n+1 null nodes or Null Branches.

so answer is 21.

MOHAMMAD SAJID

Ipone4s how do you turn on the debugging?

You can turn on the debugging option in Ipone 4s safari browser by: 1. 1st selecting the Settings icon 2. Select the choice labeled Safari. 3. Select developer option. 4. To activate Debug Console, you need to select the light gray area which is directly to the left of OFF button.

What is the six point fault finding technique?

1. Test the system, ie make measurements or collect other evidence 2. Analyse the readings 3. Locate fault based on analysis (step 2) 4. Determine the original cause of the fault. (ie find a method to prevent recurrence) 5. Repair the fault (bearing in mind step 4) 6. Retest the system

How many types of function in C?

Well, it depends on what you mean by the type of a function.

There are user defined functions and library functions.

Why is normalisation necessary when representing floating point form?

In a decimal floating point number representation it is always possible to use a power of 10 (exponent) to write a number so that it lies between 0 and 1, by changing the exponent. For example: 5 = 0.5 x 10 50 = 0.5 x (10 to the power 2) 0.05 = 0.5 x (10 to the power -1) This is called normalisation. In the binary representation of floating point numbers it is always possible to shift the number until it starts with a 1, provided you change the exponent at the same time. This is how computer memory works. If you do this, however, the 1 does not need to be stored (because it can always be added with a little extra processing). So in computers the number is often normalised, and the leading 1 omitted. But if the storage convention assumes this is done, then, of course, it must be done for every number stored in memory.

What is a fat pointer?

It is 'flat', and it means unstructured, i.e. it has no segment and offset parts.

How do you determine if two primitives are equal in computer programming?

All programming languages provide 6 built-in comparison operators:

< less than

<= less than or equal

== equal (denoted = in some languages)

!= not equal (denoted <> in some languages)

> greater than

>= greater than or equal

In C programming, to compare any two primitive data types (X and Y) for equality, we would use the equality operator as per the following expression:

X==Y

This expression evaluates true whenever X and Y hold the same logical value, otherwise it evaluates false. We can use this expression within any statement where the expression true or false would be expected. For example:

if (X==Y) {

// do something when X and Y are equal (where X==Y evaluates true)

} else {

// do something when X and Y are not equal (where X==Y evaluates false)

}

Note that the built-in == operator can also be applied to any combination of primitive data types that can be implicitly promoted or converted to a common type. For example, comparing an int with a double will implicitly convert the int to a double, thus we are actually comparing two doubles, as per the following "named operator":

bool is_equal (int X, double Y) {

return X==Y; // implicitly the same as: return (double) X==Y;

}

Does link get married?

that's what I asked my friend she said yes, because she watches a lot of videos I will tell you a little secret!!!! Link gets drunk at the video at the end! Zelda gets so Tired of it! Zelda really Likes Link. That's what I trying to say. So prove to others a watch the video at the end say that really happend. I'm not done with the game but I bet that's what happend. There is also a dumb video in Robot Chicken so if you see that that's sometimes how mad she gets. Sorry it had to be so Long! Link gets married

Link will stick his togue out to everybody and say " I married the Princess!!!"

Really? no he is most of the time too young

How do computer virus programmers test their virus?

I mean, if they execute the virus program in their own system, it will a problem to their system also na.. So, there must be some way they follow, whether their virus program is working fine or not..

What is the method they follow???

I heard that they get other computers to test it on like someone will volunteers there's to test it on and then the person who created the virus erases everything on the volunteers and reset everything or they just buy computers to test it on. I'm not sure

most people who do things on computer also have an old computer/laptop.

They will probably test is on that one (since they know how to remove it...)

What is HTMP?

typo for HTML

It can also mean Hypertext Mail Protocol

Java program that prompts the user for an integer and then prints out all prime numbers upto that number?

import java.io.*;

class PrimeNumber

{

public static void main(String[] args) throws Exception

{

int i;

BufferedReader bf = new BufferedReader(

new InputStreamReader(System.in));

System.out.println("Enter number:");

int num = Integer.parseInt(bf.readLine());

System.out.println("Prime number: ");

for (i=1; i < num; i++ ){

int j;

for (j=2; j<i; j++){

int n = i%j;

if (n==0){

break;

}

}

if(i == j){

System.out.print(" "+i);

}

}

}

}

output:

Enter number:

50

Prime number:

2 3 5 7 11 13 17 19 23 29 31 37 41 43 47BUILD SUCCESSFUL (total time: 3 seconds)

What does denote the abbreviations LCD or CRT?

LCD stands for Liquid Crystal Display and CRT stands for Cathod Ray Tube

What is a TrapHandler?

A trap handler, also called an interrupt handler or interrupt service routine (ISR) is a program that executes when predefined events occur in a computer. There are software and hardware interrupts. An interrupt causes the computer's processor to stop running its current task and immediately run the trap handler to service the interrupt.

What is reusability in oop?

this term refers to the ability for multiple programmers to use the same written and debugged existing class of data. this is time saving device and adds code efficiency to language.

Who was bluetooth?

bluetooth is a name which is translated from BLATAND

What are the disadvantages of turbo pascal?

Turbo Pascal is a good language to learn programming, but its major disadvantage is that it's hardly ever used for real-world programming projects. It's basically just an academic language, and a bit dated at that.

Stack example in c using push and pop?

http://www.osix.net/modules/article/?id=275

muzzy writes "Here's some code for you kids. It demonstrates the concept of stack, implemented with a linked list mechanism to support virtually infinitely large stack sizes. Happy reading."

/* Simple Dynamically Allocating Stack Implementation in C
*
* Copyright (C) 2002 Muzzy of Worst Coders
*/

10kilobytes is roughly equals to?

0.00000000001 Petabytes
0.00000001 terrabytes
0.00001 gigabytes
0.01 megabytes
10 kilobytes
10 000 bytes
70 000 bits

All numbers are approximate.

Is there any difference in allocation of the memory of the member of class and object?

A class is the definition of a type -- it consumes no memory in an off itself. An object is an instance of a class, and therefore consumes memory, equal to the total size of all its member variables (attributes), including base class members, plus padding for alignment. If the class declares any virtual methods, a v-table is also created, which consumes additional memory.

What is problem oriented language?

a program generation activity aims at automatic generation of a program.The source language is a specification language of an application doamain and the target language is typically a procedure oriented programming language.A program execution activity organized the execution of a program return in a programming language on a computer system.Its source language could be a procedure oriented language or a problem oriented language

What is basic difference between Linux 4 and Linux 9?

== == There is no Linux 9 yet. In fact, there is no Linux 3 yet. Linux is still at major version 2.

If you meant to ask about the differencences between R-HEL 4 an R-HEL 9, please ask the question again.

What most people commonly refer to as "Linux" is actually the kernel or operating system for GNU/Linux. The operating system by itself provides amongst other things a (software) platform for programs to execute on. The reason for the "GNU" prefix relates the the utilities that form part of the user's view of the operating system. These utilites allow the creation of directories, the editing of files, deleting files, etc. These utilities are not distributed in a bundled form with the Linux kernel. The Linux kernel itself is distributed under a special license known as the GNU Public Licence (GPL) which allows people to distribute is legally, and to obtain it freely. Freely here does not refer to price, however. Many software vendors have started creating tools and bundled packages which include the Linux kernel. These vendors, such as Red Hat, or Mandrake, or SuSe, will then give their particular release a version number, such as Red Hat Linux 4, or Mandrake Linux 10.1. The difference mainly includes updated utilities, and an updated (newer) version of the Kernel itself. It is important to realise, however, that there is really no such thing as Linux 4, or Linux 9. One may see something along the Lines of Linux 2.4.26 or Linux 2.6, which is referring to the version or release of the Linux Kernel.

How do you create a countdown timer that every 20 seconds despatches a new event in as 3?

I have a disease known as Restless Leg Syndrome. It causes my right leg to jump apparently spontaneously every 20 seconds unless I have taken enough medicine to quell the cyclic events. The medicine I take is called pramipexole. Before bedtime I take about three milligrams of pramipexole in pill form by mouth. As I begin to awaken after sleeping, my right leg jumps autonomously every twenty seconds until I get up and am fully awake. At that time, the jumping apparently stops. I can also get some relief from this disease by walking about until my legs are tired, requiring about 20 to minutes of steady walking. If I don't either walk or take a sufficient amount of pramipexole, the leg-jumping occurs as I begin to fall asleep, and the movement is so violent that it awakens me, after which the jumping is again delayed until I am again almost asleep, when it recurs. This pattern of apparently spontaneous muscle spasm is so regular that it keeps the sufferer (i.e., me) awake for hours until I am so sleep deprived that I can fall asleep in spite of the action of my leg.

So here is the question: What is the activity in the brain that occurs every 20 seconds in periods of quasi-wakefulness or near sleep? What brain activity during sleep occurs with such perfect regularity? Is this a demonstration of biorhythm in the form of a disease?