Fundamental of computer science homework Help at TutorEye

Best Homework Help For Fundamental of computer science

Our experts are available 24/7 to help you with Fundamental of computer science

Top Questions

5.In this problem and the next one, we’re going to make a very simple spam checker program by just looking ...

ooking at how likely a given email is to be spam based on the words it contains. In particular, in this problem we’re going to count how often words are present in spam emails within some set of training data (which here means a set of emails that have already been marked as spam or not spam manually). We have already started to write a function spam_score(spam_file, not_file, word), which takes in two filenames, along with a target word (a lowercase string). Both filenames refer to text files which must be in the same directory as hw07.py (we’ve provided several such files in hw07files.zip). The text files contain one email per line (really just the subject line to keep things simple) - you can assume that these emails will be a series of words separated by spaces with no punctuation. The first file contains emails that have been identified as spam, the second contains emails that have been identified as not spam. Since you haven’t learned File I/O yet, we’ve provided code that opens the two files and puts the data into two lists of strings (where each element is one line - that is, one email). You then must complete the function, so that it returns the spam score for the target word. The spam score is an integer representing the total number of times the target word occurs across all the spam emails, minus the total number of times the word occurs in not-spam emails. Convert all words to lowercase before counting, to ensure capitalization does not throw off the count.
View More

Fundamental of computer science: 

 

Computer Science is the study of computers and computational systems. The range of topics covered that the discipline of Computer Science cover is algorithms, computation, and information to the practical issues of implementing computational systems in hardware and software.

 

Fundamental of computer science Sample Questions:

 

 

Question 1: Who developed the basic architecture of the computer

 

A) Charles Babbage 

B) John Von Neumann

C) Garden Moore

D) None of these

 

Answer: John Von Neumann

Explanation: John Von Neumann developed the basic architecture of the computer.

 

Get the full solution!

 

 

Question 2: Fifth-generation of computers is based on?

 

A) Programming Intelligence 

B) Artificial Intelligence 

C) VVLSI

D) None of these


Answer: Artificial Intelligence

Explanation: Fifth-generation of computers is based on Artificial Intelligence

 

Get the full solution!

 

 

Question 3: Select the non-volatile memory among the following options.

 

A) RAM

B) ROM

C) DRAM

D) None of these


Answer: ROM

Explanation: ROM is an example of non-volatile memory.

 

Get the full solution!


 

Question 4: Which of the following is the correct description for an error?

 

A) Debug 

B) Bug 

C) Cursor 

D) None of these


Answer: Bug

Explanation: The error caused in a computer system is also known as a bug, the process of fixing a bug is called debugging.

 

Get the full solution!


 

Question 5: Select the correct option for 1’s complement of 10?

 

A) 10

B) 01

C) 11

D) None of these

 

Answer: 01

Explanation: In order to find 1’s complement, change all 0’s to 1 and change all 1’s to 0.

 

Get the full solution!


 

Question 6: Which of the following defines execution and fetching of one simple machine instruction?

 

A) CPU Cycle

B) Delay Time

C) Seek Time 

D) None of these


Answer: CPU Cycle 

Explanation: The CPU Cycle can be defined as the time required for executing one simple processor operation like addition.


 

Get the full solution!


 

Question 7: Which number should be added to the 1’s complement for calculating 2’s complement?

 

A) 0

B) 1

C) 10

D) None of these

 

Answer: 1

Explanation: 2’s complement of a number = its (1’s complement) + 1

 

Get the full solution!


 

Question 8: Which of the following can be described as a list of coded instructions?

 

A) Algorithms 

B) Flow Chart

C) Computer Program

D) None of these

 

Answer: Computer Program

Explanation: A computer program can be defined as the set of instructions that can be executed by the computer in order to perform some specific task.

 

 

Get the full solution!

 


Question 9: Which of the following is the common boundary between the two systems?

 

A) Surface

B) Interface 

C) Interdiction

D) None of these


Answer: Interface 

Explanation: The interface is shared across which two or more components of the computer system can exchange information.

 

Get the full solution!


 

Question 10: What is the full form of ASCII?

 

A) American security code for information interchange

B) American standard code for information interchange

C) All-purpose security code for information interchange

D) None of these

 

Answer: American standard code for information interchange

Explanation: The following is the full form of ASCII: 
American security code for information interchange
It is a character encoding standard for electronic communication.

 

Get the full solution!

 

 

 

Computer Science Question Answers Pages


 

Programming in C and C Plus Plus Programming in Java Internet Programming
Screen Readers Android Programming Programming in Python C Sharp Programming