Computer Science homework help

Question 1
1. Main memory is called ____.

read only memory

Don't use plagiarized sources. Get Your Custom Essay on
Computer Science homework help
From $10/Page
Order Essay

random access memory

read and write memory

random read only memory

3 points
Question 2
1. The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer.

MM

ROM

RAM

CPU

3 points
Question 3
1. The ____ carries out all arithmetic and logical operations.

IR

ALU

CU

PC

3 points
Question 4
1. The ____ holds the instruction currently being executed.

CU

IR

PC

ALU

3 points
Question 5
1. When the power is switched off, everything in ____ is lost.

main memory

secondary storage

hard disks

floppy disks

3 points
Question 6
1. ____ programs perform a specific task.

Application

System

Operating

Service

3 points
Question 7
1. The ____ monitors the overall activity of the computer and provides services.

Central Processing Unit

operating system

arithmetic logic unit

control unit

3 points
Question 8
1. Which of the following is NOT an output device?

monitor

printer

CPU

secondary storage

3 points
Question 9
1. ____ represent information with a sequence of 0s and 1s.

Analog signals

Application programs

Digital signals

System programs

3 points
Question 10
1. A sequence of eight bits is called a ____.

binary digit

byte

character

double

3 points
Question 11
1. The digit 0 or 1 is called a binary digit, or ____.

bit

bytecode

Unicode

hexcode

3 points
Question 12
1. The term GB refers to ____.

giant byte

gigabyte

group byte

great byte

3 points
Question 13
1. ____ consists of 65,536 characters.

ASCII-8

ASCII

Unicode

EBCDIC

3 points
Question 14
1. A program called a(n) ____ translates instructions written in high-level languages into machine code.

assembler

decoder

compiler

linker

3 points
Question 15
1. A program called a(n) ____ combines the object program with the programs from libraries.

assembler

decoder

linker

compiler

3 points
Question 16
1. Consider the following C++ program.

#include <iostream>
using namespace std;

int main()
{
cout << “Hello World ”
return 0;
}

In the cout statement, the missing semicolon in the code above will be caught by the ____.

compiler

editor

assembler

control unit

3 points
Question 17
1. A program that loads an executable program into main memory is called a(n) ____.

compiler

loader

linker

assembler

3 points
Question 18
1. A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time is called a(n) ____.

algorithm

linker

analysis

design

3 points
Question 19
1. To develop a program to solve a problem, you start by ____.

analyzing the problem

implementing the solution in C++

designing the algorithm

entering the solution into a computer system

3 points
Question 20
1. In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____.

object

class

function

algorithm

3 points
Question 21
1. Which of the following is a legal identifier?

program!

program_1

1program

program 1

3 points
Question 22
1. All of the following are examples of integral data types EXCEPT ____.

int

char

double

short

3 points
Question 23
1. Which of the following is a valid char value?

-129

-128

128

129

3 points
Question 24
1. The value of the expression 17 % 7 is ____.

1

2

3

4

3 points
Question 25
1. The expression static_cast<int>(9.9) evaluates to ____.

9

10

9.9

9.0

3 points
Question 26
1. The length of the string “computer science” is ____.

14

15

16

18

3 points
Question 27
1. Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.

1

2

3

4

3 points
Question 28
1. Suppose that alpha and beta are int variables. The statement alpha = –beta; is equivalent to the statement(s) ____.

alpha = 1 – beta;

alpha = beta – 1;

beta = beta – 1;
alpha = beta;

alpha = beta;
beta = beta – 1;

3 points
Question 29
1. Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.

alpha = 1 + beta;

alpha = alpha + beta;

alpha = beta;
beta = beta + 1;

beta = beta + 1;
alpha = beta;

3 points
Question 30
1. Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.

beta = beta + 1;
alpha = beta;

alpha = beta;
beta = beta + 1;

alpha = alpha + beta;

alpha = beta + 1;

3 points
Question 31
1. Choose the output of the following C++ statement:
cout << “Sunny ” << ‘\n’ << “Day ” << endl;

Sunny \nDay

Sunny \nDay endl

Sunny
Day

Sunny \n
Day

3 points
Question 32
1. Which of the following is the new line character?

\r

\n

\l

\b

3 points
Question 33
1. Consider the following code.

// Insertion Point 1

using namespace std;
const float PI = 3.14;

int main()
{
//Insertion Point 2

float r = 2.0;
float area;
area = PI * r * r;

cout << “Area = ” << area <<endl;
return 0;
}
// Insertion Point 3

In this code, where does the include statement belong?

Insertion Point 1

Insertion Point 2

Insertion Point 3

Anywhere in the program

3 points
Question 34
1. ____ are executable statements that inform the user what to do.

Variables

Prompt lines

Named constants

Expressions

3 points
Question 35
1. The declaration int a, b, c; is equivalent to which of the following?

inta , b, c;

int a,b,c;

int abc;

int a b c;

3 points
Question 36
1. Suppose that sum and num are int variables and sum = 5 and num = 10. After the statement sum += num executes, ____.

sum = 0

sum = 5

sum = 10

sum = 15

3 points
Question 37
1. Suppose that alpha is an int variable and ch is a char variable and the input is:

17 A

What are the values after the following statements execute?

cin >> alpha;
cin >> ch;

alpha = 17, ch = ‘ ‘

alpha = 1, ch = 7

alpha = 17, ch = ‘A’

alpha = 17, ch = ‘a’

3 points
Question 38
1. Suppose that x is an int variable, y is a double variable, z is an int variable, and the input is:

15 76.3 14

Choose the values after the following statement executes:

cin >> x >> y >> z;

x = 15, y = 76, z = 14

x = 15, y = 76, z = 0

x = 15, y = 76.3, z = 14

x = 15.0, y = 76.3, z = 14.0

3 points
Question 39
1. Suppose that x and y are int variables, ch is a char variable, and the input is:

4 2 A 12

Choose the values of x, y, and ch after the following statement executes:

cin >> x >> ch >> y;

x = 4, ch = 2, y = 12

x = 4, ch = A, y = 12

x = 4, ch = ‘ ‘, y = 2

This statement results in input failure

3 points
Question 40
1. Suppose that ch1, ch2, and ch3 are variables of the type char and the input is:

A B
C

Choose the value of ch3 after the following statement executes:

cin >> ch1 >> ch2 >> ch3;

‘A’

‘B’

‘C’

‘\n’

3 points
Question 41
1. Suppose that ch1 and ch2 are char variables, alpha is an int variable, and the input is:

A 18

What are the values after the following statement executes?

cin.get(ch1);
cin.get(ch2);
cin >> alpha;

ch1 = ‘A’, ch2 = ‘ ‘, alpha = 18

ch1 = ‘A’, ch2 = ‘1’, alpha = 8

ch1 = ‘A’, ch2 = ‘ ‘, alpha = 1

ch1 = ‘A’, ch2 = ‘\n’, alpha = 1

3 points
Question 42
1. Suppose that ch1, ch2, and ch3 are variables of the type char and the input is:

A B
C

What is the value of ch3 after the following statements execute?

cin.get(ch1);
cin.get(ch2);
cin.get(ch3);

‘A’

‘B’

‘C’

‘\n’

3 points
Question 43
1. When you want to process only partial data, you can use the stream function ____ to discard a portion of the input.

clear

skip

delete

ignore

3 points
Question 44
1. Suppose that alpha, beta, and gamma are int variables and the input is:

100 110 120
200 210 220
300 310 320

What is the value of gamma after the following statements execute?

cin >> alpha;
cin.ignore(100, ‘\n’);
cin >> beta;
cin.ignore(100,’\n’);
cin >> gamma;

100

200

300

320

3 points
Question 45
1. Suppose that ch1 and ch2 are char variables and the input is:

WXYZ

What is the value of ch2 after the following statements execute?

cin.get(ch1);
cin.putback(ch1);
cin >> ch2;To continue with the answer check on mycoursewriter.com/

MyCourseWriter
Order NOW For A 35% Discount!
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Homework Writing

Do you need to ace your test? We have qualified writers to assist you in writing 100% quality homework writing. Mycoursewriter offers students unique and personalized custom papers that help them in getting good grades. Our academic experts will assist you with your dissertation papers, thesis writing, research papers, term papers, and case study homework help. Our writers are experienced and have perfected the art of crafting the best essay writing papers regardless of your academic level. Order now and get our superb homework writing services.

Expert Academic Writers

A student needs professional assistance outside class time. Before hiring our writers, they undergo thorough tests and strict educational backgrounds. After passing a test, our writers undergo training to ensure they deliver expert professional papers to our customers. We ensure they meet the timely delivery of papers and follow our customers' provided instructions. Every writer is an ENL writer and is from the USA, Canada, UK, or Australia. Our experts approach papers effectively depending on their area of specialization.

Affordable Price Guarantees

Is the deal too good to be true? Mycoursewriter is the most affordable assignment help website on the market. We consider students' daily needs for academic help. Our paper costs are reasonably priced to approximately 90% of students around the globe. Our main aim is to ensure students achieve academic excellence, and we believe inconsiderable prices should not hinder students from getting quality homework writing help. In case of any dissatisfaction, we offer unlimited revisions and rewrites without extra charges.

Timely delivery of papers

Tight deadline? Is your paper due in the next few hours? Worry no more. Our writers are here for your rescue. Many college students find it hard to balance their social and academic life and get caught up with academic deadlines. Drafting your paper at the last minute does not allow you to conduct extensive research and craft the correct answers. We have expert writers ready to work on your assignment writing. Urgent writing services are the ultimate solutions you need. We guarantee you timely delivery of papers at your convenience and specified time delivery of the customer.

100% Original Tasks

The ultimate deal-breaker in achieving good grades is submitting imitative papers. Plagiarism is a breach of examination standards and has serious consequences. Students need to deliver papers written in their understanding by paraphrasing their research findings and relevant citations. Our expert's primary consideration is providing free plagiarized papers that meet the lecturers' requirements. Our editors will proofread your paper before delivery ad ensure your papers will not be substandard. We guarantee extreme originality, and in case of any customer concerns, we offer a plagiarism report.

All Round the clock Customer Support

Our website is user-friendly and super useful! Mycoursewriter is the most trusted online writing website always available to provide you with assignment writing services that you need. Our primary concern is meeting customer need specifications by our friendly customer support team that Is available all the time. Our website usability is self-learnable but in case of any problem, feel free to contact us directly through our website email: support@mycourserwiter.com. We have diligently satisfied thousands of students, and you can witness this on our sites' review page.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Advantages of Using Our Assignment writing Services

Mycoursewriter welcomes you for superb essay writing services. We are a legit site offering help with your most challenging homework writing assignments at affordable prices. Your essay paper will be assigned to a professional writer who will craft the paper from scratch according to your provided instructions.

Essays

Essay Writing and Proofreading Services

Essay writing is a common assignment writing for most college students. It takes a lot of time to craft a complete perfect essay. Mycourserwiter offers the best essay writing and proofreading services for most college students. Your paper is assigned to an expert writer who does thorough research on fresh ideas and personalizes your essay paper according to your assignment writing guidelines. Our essays are entirely exceptional and undergo a strict procedure that includes papers free from plagiarism and thorough proofreading.

Admissions

Admission and Business Papers

Writing an admission paper is not every student's desire, and this should not hinder any student from earning an admission. Writing a perfect personal statement to earn a position in a dream school or job can be stressful. Personal statements should display a high level of confidence and uniqueness. Admission essays require you to have a vast knowledge of the current happenings in the world and knowhow of the business world. We have qualified writers with skills who will write your admission paper through comprehensive research. All you have to do is provide us with little details about yourself, instructions and our writers will craft a perfect paper for you.

Editing

Editing and Proofreading

Mycoursewriter offers you assignment writing services free from grammatical and formatting mistakes. An error-free paper is significant in scoring the desired maximum grades. We have a team of editors who will go through your paper after our expert writers have delivered their fully crafted papers. Our writers will cover all the aspects of your paper instructions, such as fonts, spacing, and educational formats. Our team of editors will check through your paper to make sure it meets the formatting style provided in the paper instructions. Under no circumstances will a poorly formatted paper will be forwarded to you as our team of editors will ensure careful proofreading.

Coursework

Technical Papers

Assignment writing is part of a learning process, and one may not have the knowledge to answer all questions correctly. This should not be a stress to you as we have qualified essay writing experts to help you. Our qualified writers are holders of PhDs, Degrees, and Masters in different areas of study and can handle any papers regardless of the complexity. Multiple assignments may be challenging to finish on time. Our skilled professional writers are here to assist you in crafting all the correct answers for your assignment. Stop stressing about your homework writing and place an order with us, and our expert writers will provide you with the best assignment help.