Logo TestGru USA
Home Categories Forum Login Support
This test is for educational purposes only. Our platform is not operated by the College Board, DMV, or any official government agency. For official exam information, visit the relevant agency websites.

US Major Computer Science Test 2

Majors » Category

Author: TestGru Team (Education Specialist)

20 questions · All questions on one page

Prepared with up-to-date content
University Major — Test 2 (Computer Science) University (Undergraduate Majors, USA) USA USA University Majors Curriculum
What is this test? for University Major review (University Major — Test 2 (Computer Science)), USA — University (Undergraduate Majors, USA) level, USA.
For University students (Undergraduate) in Test 2 (Computer Science) in the USA — is this your major?
Section: University Major — Test 2 (Computer Science) · Education: University (Undergraduate) · Part: University Major — Test 2 (Computer Science) · Country: USA

A regular habit of taking practice tests makes learned information stick and is one of the most important factors directly affecting exam success.

This test will help you gauge your knowledge in your field and manage your exam prep more efficiently.

By solving this test of 20 questions, you can both test your knowledge and identify the topics you need to improve.

Question 1
What is an if statement?
A) Condition branch
B) Loop
C) No choice
D) End only
Question 2
What is a database?
A) Spreadsheet only
B) Organized data store
C) No data
D) Paper files
Question 3
What is concatenation?
A) Splitting
B) Deleting
C) Joining strings
D) Sorting
Question 4
What is a boolean?
A) Number only
B) Text only
C) No value
D) True false value
Question 5
What is DNS?
A) Name lookup
B) Address assign
C) No names
D) Cable map
Question 6
What is HTTP?
A) Email rules
B) Web transfer rules
C) No rules
D) File type
Question 7
What is binary?
A) Base-10
B) Letters only
C) Base-2 digits
D) No digits
Question 8
Which term means "Self-calling function"?
A) binary
B) a bit
C) an algorithm
D) recursion
Question 9
Provide the definition of runtime:
A) Execution time
B) Write time
C) No time
D) Design time
Question 10
Which of the following best defines SQL?
A) Markup
B) Query language
C) Style code
D) No queries
Question 11
Which of the following best defines a compiler?
A) Text editor
B) No translation
C) Code translator
D) Bug maker
Question 12
Which of the following best defines a comment?
A) Code command
B) Error
C) Output
D) Ignored note
Question 13
What best defines a for loop?
A) Counted repeats
B) Endless loop
C) No repeats
D) One run
Question 14
What best defines a loop?
A) One run
B) Repeated code
C) No code
D) End only
Question 15
Which of the following best defines encryption?
A) Plain text
B) Deleting data
C) Scrambling data
D) Copying data
Question 16
What best defines a function?
A) One-use code
B) No inputs
C) Data only
D) Reusable block
Question 17
What best defines debugging?
A) Fixing errors
B) Writing code
C) No errors
D) Deleting all
Question 18
What best defines a float?
A) Whole only
B) Decimal number
C) Text only
D) No value
Question 19
What best defines a bit?
A) Byte
B) Word
C) 0 or 1
D) Letter
Question 20
Provide the definition of a string:
A) Number only
B) No text
C) Single char
D) Text sequence

About This Test

For University Undergraduate (USA) — Engineering, Computer Science, Business, Nursing, Psychology and Environmental Science career-focused tests. Section: University Majors, USA.

University Majors USA — 900+ tests. Engineering, CS, Business, Nursing, Psychology, Biology, Environmental Science, etc. Major-specific, career-aligned. 8×20Q each.

Majors Forum: respectful peer help only — auto-moderation active across all 18 categories.

Study Tips:

  • Choose your exact major
  • Do major-specific weak topics
  • Link theory to career
  • Support peers respectfully