Introduction To Computer Science Test

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By KretschK
K
KretschK
Community Contributor
Quizzes Created: 9 | Total Attempts: 7,328
| Attempts: 132 | Questions: 20
Please wait...
Question 1 / 20
0 %
0/100
Score 0/100
1. A variable that can only be true or false is what kind?

Explanation

A variable that can only be true or false is called a boolean. In programming, boolean is a data type that represents true or false values. It is often used in conditional statements and logical operations to make decisions in a program. The term "boolean" is typically spelled with a lowercase "b" in programming languages like Java, while "Boolean" with an uppercase "B" is used in some other languages.

Submit
Please wait...
About This Quiz
Introduction To Computer Science Test - Quiz

This Introduction to Computer Science Test assesses fundamental programming skills, including understanding of basic operations, conditional logic, and variable types. It is designed for learners to demonstrate their... see moregrasp of core computer science principles and problem-solving abilities. see less

2. The tool that displays text which the user is not allowed to edit while the application is running is _____.

Explanation

A label is a tool that displays text which the user is not allowed to edit while the application is running. It is typically used to provide information or instructions to the user. Unlike a text box, radio button, or button, a label is a static element that cannot be modified by the user.

Submit
3. TOE stands for

Explanation

The correct answer is "Task, Object, Event". In the context of computer programming, TOE is an acronym that represents the three fundamental components of an object-oriented system. A task refers to a specific action or behavior that an object can perform. An object is an instance of a class and represents a specific entity or concept in the system. An event is a trigger or notification that occurs within the system. Therefore, "Task, Object, Event" accurately describes the key elements of an object-oriented system.

Submit
4. Red/green color blindness is common. When considering using those colors you should keep what in mind?

Explanation

When considering using red and green colors, it is important to keep in mind that red and green have specific meanings. Additionally, shape, position, or texture should also be used to convey information effectively. Moreover, using contrasting colors can often highlight each other and improve visibility. Therefore, all of the above factors should be considered when using red and green colors.

Submit
5. The most important information on a form should be in the upper-left corner of the form.

Explanation

The upper-left corner of a form is considered the prime real estate because it is the first area that the eye is naturally drawn to when reading a document. Placing important information in this location ensures that it will be easily noticed and not overlooked. By placing crucial details in the upper-left corner, it increases the chances of users quickly and efficiently processing the information on the form. This layout principle is based on the natural reading pattern of most cultures, where the eye starts from the top left and moves to the right and down.

Submit
6. The use of multiple fonts and multiple font sizes is a good idea.

Explanation

Using multiple fonts and font sizes can create a visually cluttered and unprofessional appearance. Consistency in font usage helps maintain a cohesive and organized design. It is generally recommended to stick to one or two fonts and use font sizes consistently throughout a document or design to ensure readability and visual harmony.

Submit
7. Consider the following code: Dim n as Integer = -8 n = 100 / (n + 4) What is the value of n after the code is run?

Explanation

The code assigns the value of -8 to the variable n. Then, it calculates the expression 100 / (-8 + 4), which simplifies to 100 / -4, resulting in -25. Therefore, the value of n after the code is run is -25.

Submit
8. The arithmetic operators *, /, + and - all have the same level of precedence.

Explanation

The arithmetic operators *, /, +, and - do not have the same level of precedence. In mathematics, multiplication and division have a higher precedence than addition and subtraction. This means that when an expression contains both multiplication/division and addition/subtraction, the multiplication/division operations will be performed first. Therefore, the correct answer is False.

Submit
9. Memory locations where programs store data are called:

Explanation

Memory locations where programs store data are called variables. In programming, variables are used to store and manipulate different types of data, such as numbers, strings, or objects. They act as containers that hold values that can be accessed and modified throughout the program. The use of variables allows for dynamic and flexible programming, as the stored data can be changed as needed during the execution of the program. Therefore, the correct answer is variables.

Submit
10. If I have a button that adds tax to a product price, what would be the most appropriate caption?

Explanation

The most appropriate caption would be "Add Tax" because it is clear and concise. It effectively communicates the action of adding tax to a product price. The use of capital letters is not necessary as it does not add any additional clarity to the caption.

Submit
11. You specify a default button by setting the form's AcceptButton property to the name of the button.

Explanation

To specify a default button in a form, the AcceptButton property needs to be set to the name of the button. This means that when the user presses the Enter key, the button specified as the default will be triggered. Therefore, the given statement is true.

Submit
12. The name of a Visual Basic .NET variable must begin with a(n) _______.  

Explanation

A Visual Basic .NET variable must begin with a letter. This is because variable names in Visual Basic .NET must follow certain naming conventions, and one of those conventions is that the name must start with a letter. Starting a variable name with a letter helps to differentiate it from other elements in the code and makes the code more readable and understandable.

Submit
13. The equals sign (=) is called the ________________ operator

Explanation

The equals sign (=) is called the assignment operator because it is used to assign a value to a variable. In programming, the assignment operator is used to store a specific value in a variable, making it the most appropriate term to describe the equals sign.

Submit
14. Consider the following code sum = sum + Convert.toString(TextBox.Text) The variable sum is called a

Explanation

The variable "sum" in the given code is being used to accumulate or accumulate the value of the converted text from the TextBox. It is not being used as a counter, property, or parameter. Therefore, the correct term to describe the variable "sum" in this context is an accumulator.

Submit
15. Which of the following expressions might be used in a calculation to determine leap year?

Explanation

The expression "year Mod 4" can be used to determine if a year is a leap year or not. In this expression, "Mod" represents the modulus operator, which calculates the remainder when the year is divided by 4. If the remainder is 0, then the year is divisible by 4 and is a leap year. If the remainder is not 0, then the year is not divisible by 4 and is not a leap year.

Submit
16. If I want to combing the contents of two text boxes into one label, which statememt would I use?

Explanation

To combine the contents of two text boxes into one label, the correct statement to use is "Label1.text = TextBox1.Text + TextBox2.text". This statement assigns the concatenated value of the text in TextBox1 and TextBox2 to the text property of Label1, resulting in the combined contents being displayed in the label.

Submit
17. What will be the value of z as a result of the following statement? Dim z as Integer z = 50 \ 15

Explanation

The value of z will be 3 as a result of the following statement. The expression "50 \ 15" performs integer division, which means that it divides 50 by 15 and returns the quotient without any decimal places. In this case, the quotient is 3. Therefore, the value of z will be 3.

Submit
18. A label control is used to perform an action when clicked

Explanation

A label control is not used to perform an action when clicked. It is typically used to display text or provide information to the user. Instead, a button control is commonly used to perform an action when clicked. Therefore, the correct answer is false.

Submit
19. Consider the following code: Dim n as Integer = -8 n = 100 / n + 4 What is the value of n after the code is run?

Explanation

The value of n after the code is run is -8.5. In the code, n is initially set to -8. Then, the expression 100 / n + 4 is evaluated. Since n is -8, the division operation results in -12.5. Adding 4 to -12.5 gives us -8.5, which is the final value of n.

Submit
20. Whish property controls the caption displayed on the Forms title bar?

Explanation

The property that controls the caption displayed on the Form's title bar is "Text". This property allows the developer to set the text that appears in the title bar of the Form. By assigning a value to the "Text" property, the developer can customize the caption to display any desired text.

Submit
View My Results

Quiz Review Timeline (Updated): Feb 23, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 23, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 18, 2012
    Quiz Created by
    KretschK
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A variable that can only be true or false is what kind?
The tool that displays text which the user is not allowed to edit...
TOE stands for
Red/green color blindness is common. When considering using those...
The most important information on a form should be in the upper-left...
The use of multiple fonts and multiple font sizes is a good idea.
Consider the following code:...
The arithmetic operators *, /, + and - all have the same level of...
Memory locations where programs store data are called:
If I have a button that adds tax to a product price, what would be the...
You specify a default button by setting the form's AcceptButton...
The name of a Visual Basic .NET variable must begin with a(n) _______....
The equals sign (=) is called the ________________ operator
Consider the following code...
Which of the following expressions might be used in a calculation to...
If I want to combing the contents of two text boxes into one label,...
What will be the value of z as a result of the following statement?...
A label control is used to perform an action when clicked
Consider the following code:...
Whish property controls the caption displayed on the Forms title bar?
Alert!

Advertisement