PROGRAMMING COMPUTER an der University Of Southern Mindanao | Karteikarten & Zusammenfassungen

Lernmaterialien für PROGRAMMING COMPUTER an der University of Southern Mindanao

Greife auf kostenlose Karteikarten, Zusammenfassungen, Übungsaufgaben und Altklausuren für deinen PROGRAMMING COMPUTER Kurs an der University of Southern Mindanao zu.

TESTE DEIN WISSEN

1) What do you mean by Hardware and Software?

Lösung anzeigen
TESTE DEIN WISSEN

All the electronic/electrical components and circuits used in a computer system are called hardware. A computer is actuated and controlled with the help of computer programs called software.

Lösung ausblenden
TESTE DEIN WISSEN

14) Define reserved words or keywords


Lösung anzeigen
TESTE DEIN WISSEN

C programs are constructed from a set of reserved words which provide control and from libraries which perform special functions. The basic instructions are built up using a reserved set of words, such as main, for, if,while, default, double, extern, for, and int, to name just a few.

Lösung ausblenden
TESTE DEIN WISSEN

2) Mention the main components of a computer and their funtions.

Lösung anzeigen
TESTE DEIN WISSEN

CPU (central processing unit) – to process the data

Input Device – to enter the dat into the computer.

Output Device – to display / print results by the computer.

Lösung ausblenden
TESTE DEIN WISSEN

7) Describe at least five different format specifiers?

Lösung anzeigen
TESTE DEIN WISSEN

%d: -An integer whole number

%f: -a floating point number

%c: -a single character

%s: -a string of value of characters.

Lösung ausblenden
TESTE DEIN WISSEN

9) Define and explain printf () function?

Lösung anzeigen
TESTE DEIN WISSEN

The printf() function is used to display/output values of variable in the monitor. The printf function has general form: printf (“format specifiers”,variables)

Lösung ausblenden
TESTE DEIN WISSEN

8) Define and explain scanf () function?

Lösung anzeigen
TESTE DEIN WISSEN

The Scanf () function can be used to get input into a program and it requires two arguments. First a format specifier defines the type of data to be entered, then the name of the variable in which the input will be stored. This scanf () function is responsible for giving input into the program.

Lösung ausblenden
TESTE DEIN WISSEN

24) What is Multidimensional Arrays


Lösung anzeigen
TESTE DEIN WISSEN

An array with more than one index value is called a multidimensional array. To declare a multidimensional array you can do follow syntax

data type array_ name[ ] [ ] [ ]….;

Lösung ausblenden
TESTE DEIN WISSEN

6) Name the four basic data types in “C” language?


Lösung anzeigen
TESTE DEIN WISSEN

The four basic data types in “c” language are as follows

char – a character

int – an integer, in the range -32,767 to 32,767

long int – a larger integer (up to +-2,147,483,647)

float – a floating-point number

double – a floating-point number, with more precision and perhaps greater range than float

Lösung ausblenden
TESTE DEIN WISSEN

22) List a few unconditional control statement in C.

Lösung anzeigen
TESTE DEIN WISSEN
  1.  break statement
  2.  continue statement
  3.  goto statement
  4. exit() function
Lösung ausblenden
TESTE DEIN WISSEN

4) What is Algorithms?

Lösung anzeigen
TESTE DEIN WISSEN

An algorithms refer to the step by step instructions written to solve any problem.

Lösung ausblenden
TESTE DEIN WISSEN

30) Explain about the functions strcat() and strcmp()?

Lösung anzeigen
TESTE DEIN WISSEN

This function concatenates the source string at the end of the target string. Strcmp() function compares two strings to find out whether they are the same or different. The two strings are compared character by character until there is a mismatch or end of one of the strings is reached, whichever occurs first. If in case two strings are identical, a value of zero is returned. If there is no matches between two strings then a difference of the two non matching values are returned according to ASCII values.

Lösung ausblenden
TESTE DEIN WISSEN

38) How does the type float differ from double in C language ?

Lösung anzeigen
TESTE DEIN WISSEN

Float data type refers real number in single precision and has 6 decimal digits. It takes 4 bytes in memory to refer values ranging from 3.4e-38 to 3.4e+38

double data type also refers to real number but in double precision and has 12 decimal digits. It takes 8 bytes of memory to refer values ranging from 1.7e-308 to 1.7e+308

Lösung ausblenden
  • 7949 Karteikarten
  • 398 Studierende
  • 0 Lernmaterialien

Beispielhafte Karteikarten für deinen PROGRAMMING COMPUTER Kurs an der University of Southern Mindanao - von Kommilitonen auf StudySmarter erstellt!

Q:

1) What do you mean by Hardware and Software?

A:

All the electronic/electrical components and circuits used in a computer system are called hardware. A computer is actuated and controlled with the help of computer programs called software.

Q:

14) Define reserved words or keywords


A:

C programs are constructed from a set of reserved words which provide control and from libraries which perform special functions. The basic instructions are built up using a reserved set of words, such as main, for, if,while, default, double, extern, for, and int, to name just a few.

Q:

2) Mention the main components of a computer and their funtions.

A:

CPU (central processing unit) – to process the data

Input Device – to enter the dat into the computer.

Output Device – to display / print results by the computer.

Q:

7) Describe at least five different format specifiers?

A:

%d: -An integer whole number

%f: -a floating point number

%c: -a single character

%s: -a string of value of characters.

Q:

9) Define and explain printf () function?

A:

The printf() function is used to display/output values of variable in the monitor. The printf function has general form: printf (“format specifiers”,variables)

Mehr Karteikarten anzeigen
Q:

8) Define and explain scanf () function?

A:

The Scanf () function can be used to get input into a program and it requires two arguments. First a format specifier defines the type of data to be entered, then the name of the variable in which the input will be stored. This scanf () function is responsible for giving input into the program.

Q:

24) What is Multidimensional Arrays


A:

An array with more than one index value is called a multidimensional array. To declare a multidimensional array you can do follow syntax

data type array_ name[ ] [ ] [ ]….;

Q:

6) Name the four basic data types in “C” language?


A:

The four basic data types in “c” language are as follows

char – a character

int – an integer, in the range -32,767 to 32,767

long int – a larger integer (up to +-2,147,483,647)

float – a floating-point number

double – a floating-point number, with more precision and perhaps greater range than float

Q:

22) List a few unconditional control statement in C.

A:
  1.  break statement
  2.  continue statement
  3.  goto statement
  4. exit() function
Q:

4) What is Algorithms?

A:

An algorithms refer to the step by step instructions written to solve any problem.

Q:

30) Explain about the functions strcat() and strcmp()?

A:

This function concatenates the source string at the end of the target string. Strcmp() function compares two strings to find out whether they are the same or different. The two strings are compared character by character until there is a mismatch or end of one of the strings is reached, whichever occurs first. If in case two strings are identical, a value of zero is returned. If there is no matches between two strings then a difference of the two non matching values are returned according to ASCII values.

Q:

38) How does the type float differ from double in C language ?

A:

Float data type refers real number in single precision and has 6 decimal digits. It takes 4 bytes in memory to refer values ranging from 3.4e-38 to 3.4e+38

double data type also refers to real number but in double precision and has 12 decimal digits. It takes 8 bytes of memory to refer values ranging from 1.7e-308 to 1.7e+308

PROGRAMMING COMPUTER

Erstelle und finde Lernmaterialien auf StudySmarter.

Greife kostenlos auf tausende geteilte Karteikarten, Zusammenfassungen, Altklausuren und mehr zu.

Jetzt loslegen

Die all-in-one Lernapp für Studierende

Greife auf Millionen geteilter Lernmaterialien der StudySmarter Community zu
Kostenlos anmelden PROGRAMMING COMPUTER
Erstelle Karteikarten und Zusammenfassungen mit den StudySmarter Tools
Kostenlos loslegen PROGRAMMING COMPUTER