Challenge your competence level in computers, computing, algorithms, hardware and software with these Computer science questions and answers.
Evaluate \(1011_2 + 122_4\), leaving your answer in base 10.
37
51
47
73
Correct answer is A
1011\(_2\) = 1 × 2\(^3\) + 0 × 2\(^2\) + 1 × 2\(^1\) + 1 × 2\(^0\)
1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 8 + 0 + 2 + 1 = 11
122\(_4\) = 1 × 4\(^2\) + 2 × 4\(^1\) + 2 × 4\(^0\)
1 × 16 + 2 × 4 + 2 × 1 = 16 + 8 + 2 = 26
11 + 26 = 37
Which of these storage devices can act as a buffer between the CPU and the main memory ?
Hard disk
Floppy disk
Cache Memory
Flash drive
Correct answer is C
Cache memory is a very high speed semiconductor memory which can speed up CPU, it acts as a buffer between the CPU and main memory
What is the difference between an assembler and a compiler ?
an assembler converts a machine language code into assembly level language code while a compiler converts high level programming language to a machine language code
an assembler converts assembly level language code into machine language code while a compiler converts high level programming language code to a machine language code
a compiler converts assembly level language code into machine lange while an assembler converts high level programming language to a machine language code
they both convert assembly level language code into machine language
Correct answer is B
An assembler converts assembly level language code into machine language code while a compiler converts high level programming language code to a machine language code
System software
Operating system
Utility programs
Application software
Correct answer is A
Translators are a type of system software. They are used to convert source code written in one programming language (the source language) into another programming language (the target language). Examples of translators include compilers, interpreters, and assemblers. System software is a type of computer software designed to run a computer's hardware and application programs. It includes the operating system, device drivers, diagnostic tools, servers, windowing systems, utilities, and more
System design
Feasibility study
System analysis
Investigative study
Correct answer is C
During the System Analysis stage of the System Development Life Cycle (SDLC), all data are documented in the form of detailed Data Flow Diagrams (DFDs). The System Analysis stage involves understanding and documenting the business processes and requirements of the new system