Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 10 páginas
Examen

COSC 1436 PRACTICE EXAM ALL QUESTIONS AND ANSWERS GRADED A+

Document preview thumbnail
Vista previa 2 fuera de 10 páginas

COSC 1436 PRACTICE EXAM ALL QUESTIONS AND ANSWERS GRADED A+

Vista previa del contenido

COSC 1436 PRACTICE EXAM ALL QUESTIONS AND
ANSWERS GRADED A+
✔✔True - ✔✔Each byte in memory is identified by a unique number known as an
address.

✔✔// - ✔✔single line comment

✔✔/* */ - ✔✔block comment

✔✔# - ✔✔beginning of preprocessor

✔✔; - ✔✔end of a complete statement

✔✔endl - ✔✔new line

✔✔" " - ✔✔used to signify a string

✔✔' ' - ✔✔used to signify a character

✔✔{ } - ✔✔enclose a group of statements (such as lines in a function)

✔✔\ - ✔✔escape character

✔✔Constant identifier names must be written in all caps - ✔✔Which of the following is
NOT true regarding named constants?
Use the following keyword to define a constant: const
Constant identifier names must be written in all caps.
An initialization value must be given at a declaration/definition time.
A compiler error will occur if a statement attempts to change the value of a constant.

✔✔+ - ✔✔addition

✔✔- - ✔✔subtraction or negation

✔✔* - ✔✔multiplication

✔✔/ - ✔✔division

✔✔% - ✔✔modulus/remainder

✔✔= - ✔✔assignment

✔✔int - ✔✔What is the correct data type of this literal: -342

, ✔✔double/float - ✔✔What is the correct data type of this literal: 9.0

✔✔string - ✔✔What is the correct data type of this literal: "Hello"

✔✔char - ✔✔What is the correct data type of this literal: 'X'

✔✔string - ✔✔What is the correct data type of this literal: "X"

✔✔bool - ✔✔What is the correct data type of this literal: true

✔✔1stNum - ✔✔Which of the following is NOT a legal identifier?
_firstNum
num_1
first_num
1stNum
firstNum

✔✔1 - ✔✔How many bytes are needed to store: 'n'

✔✔2 - ✔✔How many bytes are needed to store: "n"

✔✔1 - ✔✔How many bytes are needed to store: '\n'

✔✔2 - ✔✔How many bytes are needed to store: "\n"

✔✔4 - ✔✔How many bytes are needed to store: "\\n\\"

✔✔b=a+2 - ✔✔Write a statement that adds 2 to the variable a and stores the result in
the variable b.

✔✔b=a-8 - ✔✔Write a statement that subtracts 8 from the variable a and stores the
result in the variable b.

✔✔Erroneous value - ✔✔Based on the following code and the following input, what will
be the value in the variable num3 after the cin line:

int num1, num2, num3;
char symbol;
cout << "Enter the data: ";
cin >> num1 >> symbol >> num2 >> num3;

Input:
48 18 * 28 $

Información del documento

Subido en
31 de octubre de 2025
Número de páginas
10
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$12.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BOARDWALK
3.5
(41)
Vendido
283
Seguidores
10
Artículos
32850
Última venta
1 semana hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes