COP3363 Exam 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

How can you change file permissions on UNIX?

chmod <permission list> <file name>

Which of the following functions will return the value of x rounded to the nearest whole number?

round(x)

Three primary activities of a program are:

input, processing, output

find the log

log()

Mistakes that cause a running program to produce incorrect results are called:

logic errors

Find the square root (cmath)

sqrt()

A named storage location in the computer's memory that holds a piece of information is a(n):

variable

This process is also called type casting and it is user-defined. Here the user can typecast the result to make it of a particular data type.

Explicit Type Conversions

Done by the compiler on its own, without any external trigger from the user

Implicit Type Conversion

find the absolute value

abs()

header for math functions

#include <cmath>

header for random numbers

#include <cstdlib>

header for file access

#include <fstream>

header for parameter manipulators

#include <iomanip>

header for string class

#include <string>

x =

1

w =

2

r =

4

rx

4+1 = 5

rwx

4+2+1 = 7

Which of the following is the best description of an operator

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

The purpose of a memory address is:

To identify the location of a byte in memory

Which of the following statements will pause the screen until the [enter] key is pressed?

cin.get();

The control unit works out what the instruction is and sends signals to coordinate the other components

decode stage

Where the actual computation occurs

execute stage

What is the value of the following expression true && false

false

The CPU's control unit retrieves the next instruction in the sequence of program instructions from main memory

fetch stage

CPU operation steps

fetch, decode, execute


Ensembles d'études connexes

Patho Ch 11 Spleen Review Questions

View Set

Anatomy Chapter 12 Lymphatic System and Body Defenses

View Set

Anatomy - Chapter 6 Study Guide Test

View Set

A&P I Lecture exam #3 review Part 1

View Set

Physics Units 3 & 4 Concept Quizzes

View Set

Phlebotomy order of draw questions

View Set