Study sets matching "c 40 programming"

Study sets
Classes
Users

Study sets matching "c 40 programming"

102 terms
C++ Programming
computer
hardware
software
system software
an electronic device capable of performing commands (input, o…
the physical components of a computer and its surrounding (pe…
sets of instructions to be executed by the computer, i.e., pr…
programs designed to control the computer
computer
an electronic device capable of performing commands (input, o…
hardware
the physical components of a computer and its surrounding (pe…
C programming
#
#include< >
stdio.h
puts(" ");
preprocessor directive
replaces the directive with the content of thee file whose na…
standard input output header file
writes something on the screen
#
preprocessor directive
#include< >
replaces the directive with the content of thee file whose na…
22 terms
C Programming
switch statement
#include <stdio.h>
echo $?
compile flags
test for multiple values of a single variable... switch runs al…
stdio library allows read and write data from terminal
check exit status of last program
gcc (source code)... -o output name {the outfile}
switch statement
test for multiple values of a single variable... switch runs al…
#include <stdio.h>
stdio library allows read and write data from terminal
22 terms
C# Programming
Signed vs Unsigned
Byte, defaults to signed or unsigned?
Byte what's number range it can repres…
Are int and long signed or unsigned by…
Values that are signed reserve half of numbers for negative s…
Defaults to unsigned. So for a signed Byte we need sbyte.
0 -> 255
signed. we use uint and ulong for unsigned versions.
Signed vs Unsigned
Values that are signed reserve half of numbers for negative s…
Byte, defaults to signed or unsigned?
Defaults to unsigned. So for a signed Byte we need sbyte.
Programming in C
1.
A.
B.
C.
Which of the following statements should be used to obtain a…
rem = 3.14 % 2.1;
rem = modf(3.14, 2.1);
rem = fmod(3.14, 2.1);
1.
Which of the following statements should be used to obtain a…
A.
rem = 3.14 % 2.1;
11 terms
C Programming
A procedure for solving a problem in t…
Once C code is typed in with an editor…
The _______ combines the object code w…
In the C Language, the three types of…
Algorithm
Complier
Linker
While, Do-while, and For
A procedure for solving a problem in t…
Algorithm
Once C code is typed in with an editor…
Complier
93 terms
C Programming
01. Declaring a variable
a valid identifier name
ASCII stand for
Registers
01. Declaring a variable means some memory is allocated and t…
- must start with a letter or underscore (_) ... - may contain a…
American standard code for information interchange
Registers are the fastest memory type.
01. Declaring a variable
01. Declaring a variable means some memory is allocated and t…
a valid identifier name
- must start with a letter or underscore (_) ... - may contain a…
C# programming
Compiler
Universal serial bus
Text box
Syntax
A program to translate a high-level language program into a s…
Small devices that plug into computer's USB port and appear t…
Object appears as a rectangular region that can except keyboa…
Set of strict rules that must be followed when writing program
Compiler
A program to translate a high-level language program into a s…
Universal serial bus
Small devices that plug into computer's USB port and appear t…
17 terms
C# programming
Programming Language Basics
A way to store and retrieve informatio…
Parallel Arrays
Exception Handling
A way to store and retrieve information to and from memory.... A…
Variables ... A variable is a memory location whose contents may…
Sometimes you may have two or more arrays that are linked in…
Try...Catch...Finally... Code that may create a problem is place…
Programming Language Basics
A way to store and retrieve information to and from memory.... A…
A way to store and retrieve informatio…
Variables ... A variable is a memory location whose contents may…
19 terms
Programming C
Multiline Comment
;
Identifiers rule
Is C case-sensitive
/ ... /
statement terminator
starts with a letter A to Z, a to z, or an underscore '_' fol…
Yes
Multiline Comment
/ ... /
;
statement terminator
62 terms
C Programming
argument
array
assignment
associativity
A value that is used in a call of a function.
An aggregate data object that stores similar data elements co…
An operator that assigns a value to a memory location associa…
A rule that defines the order in which operators (at the same…
argument
A value that is used in a call of a function.
array
An aggregate data object that stores similar data elements co…
102 terms
C++ Programming
computer
hardware
software
system software
an electronic device capable of performing commands (input, o…
the physical components of a computer and its surrounding (pe…
sets of instructions to be executed by the computer, i.e., pr…
programs designed to control the computer
computer
an electronic device capable of performing commands (input, o…
hardware
the physical components of a computer and its surrounding (pe…
C Programming
#include
int
printf
/n
Includes another class
Defines an integer
Prints text on the screen
Moves cursor to next line
#include
Includes another class
int
Defines an integer
47 terms
C Programming
Pre-processor directive
#
include
<stdio.h>
What the compiler compilers before the rest of the program.
Specifies that this is a pre-processor directive.
Tells to include a file, generally a package.
std stands for standard... i stands for input... o stands for outpu…
Pre-processor directive
What the compiler compilers before the rest of the program.
#
Specifies that this is a pre-processor directive.
80 terms
C programming
#
#include< >
stdio.h
puts(" ");
preprocessor directive
replaces the directive with the content of thee file whose na…
standard input output header file
writes something on the screen
#
preprocessor directive
#include< >
replaces the directive with the content of thee file whose na…
80 terms
C programming
#
#include< >
stdio.h
puts(" ");
preprocessor directive
replaces the directive with the content of thee file whose na…
standard input output header file
writes something on the screen
#
preprocessor directive
#include< >
replaces the directive with the content of thee file whose na…
82 terms
C Programming
AND
argument
assignment
binary operator
Represented as &&, a logical operator that returns 1 (TRUE) i…
A value that is used in a call of a function.
An operator that assigns a value to a memory location associa…
An operator that works on two operands. See also ternary oper…
AND
Represented as &&, a logical operator that returns 1 (TRUE) i…
argument
A value that is used in a call of a function.
36 terms
C programming
#
#include< >
stdio.h
arguments or parameters
preprocessor directive
replaces the directive with the content of thee file whose na…
standard input output header file
things put inside a function
#
preprocessor directive
#include< >
replaces the directive with the content of thee file whose na…
82 terms
C ++ Programming
(ISO)
(IEC)
What is Software?
Bits
International Organization for Standardization
International Electro-technical Commission
Software is any program that runs on a computer.
The smallest data item in a computer can assume the value 0 o…
(ISO)
International Organization for Standardization
(IEC)
International Electro-technical Commission
12 terms
Programming C++
First, each instruction is composed of…
Second, each set of binary digits is t…
In an ____________, each instruction i…
Programs written in high level languag…
bits
CPU
assembly language
compiling, interpreting
First, each instruction is composed of…
bits
Second, each set of binary digits is t…
CPU
57 terms
Programming C#
What are [square] brackets used for?
What are (parentheses) for?
What are {curly} brackets used for?
What are <angle> brackets for?
Declaring arrays or integers of an array (empty only when dec…
Methods and conditions
Groups of related code (they always line up vertically apart…
Greater or less
What are [square] brackets used for?
Declaring arrays or integers of an array (empty only when dec…
What are (parentheses) for?
Methods and conditions
21 terms
C++ Programming
C++
Statement
function
main function
- "C with classes"... - developed in the 1970's by Bjarne Strous…
- unit of code terminated by a semicolon... - Used:... 1. to call…
- larger unit of code that may contain many statements or exp…
- main entry point of any C++ program... - called by the os when…
C++
- "C with classes"... - developed in the 1970's by Bjarne Strous…
Statement
- unit of code terminated by a semicolon... - Used:... 1. to call…
71 terms
C# Programming
What is C#
What does the 2.0 version of C# includ…
What is the .NET Framework?
What is the CLR?
General purpose, type safe, object oriented, platform neutral…
The 2.0 version of C# includes such new features as generics,…
a software framework developed by Microsoft that runs primari…
Common Language Runtime: the virtual machine component of Mic…
What is C#
General purpose, type safe, object oriented, platform neutral…
What does the 2.0 version of C# includ…
The 2.0 version of C# includes such new features as generics,…
C programming
What is a good data type for whole num…
What is a good data type for fractiona…
What is a good data type for single ch…
What does a declaration of an integer…
integer (int)
Float (float) or Double (double)
Character (char)
int x;
What is a good data type for whole num…
integer (int)
What is a good data type for fractiona…
Float (float) or Double (double)
15 terms
C++ Programming
Collating Sequence
\n
\t
\0
Each of the 128 values of the ASCII character set represents…
New line character
Tab
Null
Collating Sequence
Each of the 128 values of the ASCII character set represents…
\n
New line character
38 terms
C++ Programming
What is C++?
What is C++ and enhancement to?
What is C++ the goto programming langu…
What types of programming is C++ used…
C++ was created in the late 70's by a Danish programmer Bjorn.
C++ is an enhancement to C.
It is the goto programming for application and OS
it is used for object oriented, funtional, procedural, and ge…
What is C++?
C++ was created in the late 70's by a Danish programmer Bjorn.
What is C++ and enhancement to?
C++ is an enhancement to C.
71 terms
C# Programming
What is C#
What does the 2.0 version of C# includ…
What is the .NET Framework?
What is the CLR?
General purpose, type safe, object oriented, platform neutral…
The 2.0 version of C# includes such new features as generics,…
a software framework developed by Microsoft that runs primari…
Common Language Runtime: the virtual machine component of Mic…
What is C#
General purpose, type safe, object oriented, platform neutral…
What does the 2.0 version of C# includ…
The 2.0 version of C# includes such new features as generics,…
71 terms
C# Programming
What is C#
What does the 2.0 version of C# includ…
What is the .NET Framework?
What is the CLR?
General purpose, type safe, object oriented, platform neutral…
The 2.0 version of C# includes such new features as generics,…
a software framework developed by Microsoft that runs primari…
Common Language Runtime: the virtual machine component of Mic…
What is C#
General purpose, type safe, object oriented, platform neutral…
What does the 2.0 version of C# includ…
The 2.0 version of C# includes such new features as generics,…
C# programming
Int
Long
Float
Double
Whole number
Whole number (bigger range)
Floating-point number
Double precision
Int
Whole number
Long
Whole number (bigger range)
47 terms
Programming in C
What is a .c file? ... What is a .h file?
What line of code prints the contents…
Define a number variable named age, se…
Define a string variable called "me",…
c file (where all the real action is)... header file contains st…
NSLog(@"rockstar");
NSNumber *age = @116;
NSString *me = @"rockstar";
What is a .c file? ... What is a .h file?
c file (where all the real action is)... header file contains st…
What line of code prints the contents…
NSLog(@"rockstar");
47 terms
C Programming
Pre-processor directive
#
include
<stdio.h>
What the compiler compilers before the rest of the program.
Specifies that this is a pre-processor directive.
Tells to include a file, generally a package.
std stands for standard... i stands for input... o stands for outpu…
Pre-processor directive
What the compiler compilers before the rest of the program.
#
Specifies that this is a pre-processor directive.
C++ programming
#...
#include <iostream>
int main()
Function
Preprocessors - these lines work before your program starts
Instructs preprocessor to include c++ code, allows to perform…
Initiates tje declaration of a function. this function is aut…
Group of code statements which are given a name (int main ---…
#...
Preprocessors - these lines work before your program starts
#include <iostream>
Instructs preprocessor to include c++ code, allows to perform…
C++ programming
#...
#include <iostream>
int main()
Function
Preprocessors - these lines work before your program starts
Instructs preprocessor to include c++ code, allows to perform…
Initiates tje declaration of a function. this function is aut…
Group of code statements which are given a name (int main ---…
#...
Preprocessors - these lines work before your program starts
#include <iostream>
Instructs preprocessor to include c++ code, allows to perform…
C++ Programming
computer
hardware
software
system software
an electronic device capable of performing commands (input, o…
the physical components of a computer and its surrounding (pe…
sets of instructions to be executed by the computer, i.e., pr…
programs designed to control the computer
computer
an electronic device capable of performing commands (input, o…
hardware
the physical components of a computer and its surrounding (pe…
C Programming
#include
int
printf
/n
Includes another class
Defines an integer
Prints text on the screen
Moves cursor to next line
#include
Includes another class
int
Defines an integer
5 terms
c programming
command line argument
c preproessor
macro substitution directory
file inclusion directory
it is possible to pass some values from the command line to y…
The C preprocessor or cpp is the macro preprocessor for the C…
#define preprocessor directive... It is also called as simple s…
Syntax:... #include ... or... #include "filename.h"... ... This direct…
command line argument
it is possible to pass some values from the command line to y…
c preproessor
The C preprocessor or cpp is the macro preprocessor for the C…
Programming c#
block
control statement
short-circuit evaluation
Boolean logical AND operator
collection of one or more statements contained within a pair…
the part of a structure that determines whether the subsequen…
C# feature in which parts of an AND or OR expression are eval…
determines whether two expressions are both true; written usi…
block
collection of one or more statements contained within a pair…
control statement
the part of a structure that determines whether the subsequen…
C Programming
argument
array
assignment
associativity
A value that is used in a call of a function.
An aggregate data object that stores similar data elements co…
An operator that assigns a value to a memory location associa…
A rule that defines the order in which operators (at the same…
argument
A value that is used in a call of a function.
array
An aggregate data object that stores similar data elements co…
44 terms
C programming
C program
function
variable
main function
consists of functions and variables
contains statements that specify the computing operations to…
stores values used during the computation
the function where every program begins executing. it will us…
C program
consists of functions and variables
function
contains statements that specify the computing operations to…
9 terms
C programming
Compiler
Source Code
Machine Language
o Preprocessor Directive
Takes this source code and translates it into machine language.
...
The numerical language the computer runs.
Runs before compiling the line below will be replaced by the…
Compiler
Takes this source code and translates it into machine language.
Source Code
...
30 terms
C Programming
%
++
--
==
modulus
increment
decrement
equal
%
modulus
++
increment
C programming
Type*
Type**
Arr[][]
<string.h>
Pointer
Pointer for the pointer
מערך דו ממדי
Strlen... Strcmp... Strcpy
Type*
Pointer
Type**
Pointer for the pointer
C Programming
#include
int
printf
/n
Includes another class
Defines an integer
Prints text on the screen
Moves cursor to next line
#include
Includes another class
int
Defines an integer
15 terms
C Programming
sequence point
side effect
race condition
static variable
defines any point in a computer program's execution at which…
term for an expression that, in addition to returning a value…
...
Stored in either the .BSS or .DATA segment
sequence point
defines any point in a computer program's execution at which…
side effect
term for an expression that, in addition to returning a value…
C programming
supercomputers
computer programs
programmers
multi-core processor
performing thousands of trillions of instructions per second
computers process data under the control of sequences of inst…
software programs guide the computer through ordered actions…
implements multiple processors on a single integrated circuit…
supercomputers
performing thousands of trillions of instructions per second
computer programs
computers process data under the control of sequences of inst…
39 terms
C programming
Hardware
RAM
ROM
Storage
physical components of the computing system
Random access memory. Temporary storage. This is part of memo…
Read Only Memory. This is area is used by the operating syste…
Storage is used to permanently preserve data/informant. Data…
Hardware
physical components of the computing system
RAM
Random access memory. Temporary storage. This is part of memo…
22 terms
C Programming
#include
int
printf
/n
Includes another class
Defines an integer
Prints text on the screen
Moves cursor to next line
#include
Includes another class
int
Defines an integer
C programming
Pointer
typedef
struct
UFS file system
a variable that can hold a storage address... int *p; //signifi…
sets a replacement name for a name of a type of variable... typ…
structure;... basically how you create your own data types in C…
-developed in 1970's... -large number of small files and large f…
Pointer
a variable that can hold a storage address... int *p; //signifi…
typedef
sets a replacement name for a name of a type of variable... typ…
28 terms
C Programming
Pre-processor directive
#
include
<stdio.h>
What the compiler compilers before the rest of the program.
Specifies that this is a pre-processor directive.
Tells to include a file, generally a package.
std stands for standard... i stands for input... o stands for outpu…
Pre-processor directive
What the compiler compilers before the rest of the program.
#
Specifies that this is a pre-processor directive.
C-programming
compiler
source code
machine language
preprocessor directive
computer program (or a set of programs) that transforms sourc…
any collection of computer instructions (possibly with commen…
Programming language that can be directly understood and obey…
Removes comments, performs macro substitution and # includes…
compiler
computer program (or a set of programs) that transforms sourc…
source code
any collection of computer instructions (possibly with commen…
1 of 10