chapter 1 introduction to computers and programming

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In C++, key words are written in all lowercase letters

T

what will the following code display

012

What is the output of the following statements cout << 4* (15 / (1 +3.. << endl;

12

what is the value of cookies after the execution of the following statements

2

In programming, the terms "lines" and "statement" always mean the same thing

F

This is used to mark the end of a complete C++ programming statement

Semicolon

In the process of translating a source file into an executable file, which of the following is the correct sequence?

Source code, preprocessor, modified source code, compiler, object code, linker, executable

this control sequence is used to skip over to the next horizontal tab stop

\t

which of the following correctly consolidates the following declaration statements into one statement

a

what statement best describes a variable and its purpose

a variable is a named storage in the computer's memory used for holding a piece of information

this is used in a program to mark the beginning or ending of a statement, or separate items in a list

punctuations

the programming process consists of several steps, which includes:

c design creation testing and ebugging

characters or symbols that perform operations on one or more operands are

c operators

Which data type typically requires only one byte of storage

char

In C++ program, two slash marks

the beginning of a content

___ must be included in any program that uses the cout object

the header file iostream

what will the following code displau

the number is number

a variable declaration announces the name of a variable that will be used in a program as well as

the type of data it will be used to hold

the purpose of a memory address is

to identify the location of a byte in memory

floating point constants are normally stored in memory as doubles

true

when typing in your source code into the computer you must be very careful since most of your c++ instructions, header, files and variable names are case sensitive

true

The _________ is/are used to display information on the computer's screen

cout object

You must have a _______ for every variable you intend to use in a program

definition

every complete c++ program must have a ______

function named main

The numeric data types in C++ can be broken into two general categories

integer and floating point

words that have a special meaning and may be used only for their intended purpose are known as

key words

These are data items whose values do not change while the program is running

literals

mistakes that cause a running program to produce incorrect results are called

logic errors

programmer-defined names of memory locations that may hold data are

variables

three primary activities of a program are

input processing and ouput

which of the following is a preprocessor directive

#include <iostream>

What is the modulus operator

%

a set of well defined steps for performing a task or solving a problem is known as a

algorithm

an integrated development environment typically consists of

all the above

which of the following best describes an operator

an operator allows you to perform operations on one or more pieces of data

____ are used to translate each source code instruction into the appropriate machine language instruction

compilers

this step will uncover an syntax errors in your program

compiling

a ______ is the most fundamental set of programs on a computer

operating system

A statement that starts with a # symbol is called a

preprocessor directive

an _____ is an set of instructions that the computer follows to solve a problem

program

the statements written by the programmer are called

source code

the first step in using the string class is to #include the ____ header file

string

In programming terms, a group of characters inside a set quotation marks is called a(n):

string literal


संबंधित स्टडी सेट्स

Frans ASO 1 Rallye 1 Circuit Rouge woorden vertalen ex 12,13,14 p 16,17

View Set

History U1 L18 Dissent and Discontent

View Set

Chapter 22: Seizing an American Empire

View Set

Angielski. Lekcja 1. Powitania, pozdrowienia.

View Set

Prep U: musculoskeletal disorders

View Set

Organizational Behavior Chapter 1

View Set

Chapter 2: Boot process and runlevels

View Set

Chapter 17: Impact of Chronic Illness, Disability, or End of Life Care on the Child and Family

View Set

anatomy module 4- neuro of rest of brain and spinal cord

View Set