PH1B3U1B - Variables

PH1B3U1B - Variables

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What operator do you use to assign a variable a value?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (19)

Section 1

(19 cards)

What operator do you use to assign a variable a value?

Front

assignment operator

Back

What is explicit casting?

Front

Programmer defined where the conversion is defined in the programs code

Back

What is the syntax to declare a string array?

Front

char name[size]

Back

What is the conversion character for a pointer?

Front

%p

Back

What type of casting conversion is where the compiler converts the operand? What is the basis for the conversion?

Front

Implicit, least restrictive range

Back

What function is used to print values of variables based upon their data type?

Front

printf()

Back

How many bytes is an integer?

Front

4

Back

What are the two ways to declare constant variables?

Front

#define preprocessor or const

Back

What operator do you use to calculate the size, in bytes, of a data type or variable?

Front

sizeof()

Back

What functions become available when the string.h header is called?

Front

strlen: string length; strcat: concatenate, strcmp: compare, strcpy: copy, strstr: pointer

Back

What are the signed integer types?

Front

char, short int, int, long int, long long int

Back

What is defined as a specific piece of memory in your computer that consists of one or more contiguous bytes?

Front

Variable

Back

What does the modulus operator do?

Front

Calculates the remainder of a divisor

Back

What is the method of converting a variable from one type to another?

Front

casting

Back

How many bytes does a char use?

Front

1

Back

What are the range of values for signed and unsigned char variables?

Front

signed: -128 to 127 unsigned: 0-255

Back

What are the floating point data types?

Front

float, double, long double

Back

What are the five arithmetic operators?

Front

addition, substraction, multiplication, division, modulus

Back

What is defined as a sequence of characters or symbols?

Front

String

Back