Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Quiz on C# Built-in Functions and Bob's Burger Barn Project, Quizzes of Computer Science

This is a multiple choice quiz for csci 105 introduction to computer programming course, covering topics such as the number of arguments necessary for built-in c# functions and details about bob's burger barn project. The quiz consists of 20 questions, with questions 1-6 focusing on c# functions and questions 7-20 focusing on bob's burger barn project.

Typology: Quizzes

Pre 2010

Uploaded on 08/07/2009

koofers-user-cwr
koofers-user-cwr 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCI 105 Introduction to Computer Programming Spring, 2009
Surprise Quiz #6
20 Points
MULTIPLE CHOICE:
1. How many arguments are necessary for the built-in C# function Math.Sqrt()?
a) 0 b) 1 c) 2 d) 3 e) 4
2. How many arguments are necessary for the built-in C# function Close()?
a) 0 b) 1 c) 2 d) 3 e) 4
3. How many arguments are necessary for the built-in C# function String.Format()?
a) 0 b) 1 c) 2 d) 3 e) 4
4. How many arguments are necessary for the built-in C# function Math.Pow()?
a) 0 b) 1 c) 2 d) 3 e) 4
5. How many arguments are necessary for the built-in C# function Convert.ToInt32()?
a) 0 b) 1 c) 2 d) 3 e) 4
6. A data type provided for a function will not explicitly return a value is called ____.
a) output b) private c) public d) reference e) return ab) value ac) void
7. A type of parameter which is used to provide a value to a function is called ____.
a) output b) private c) public d) reference e) return ab) value ac) void
8. A type of parameter which is used to provide information to a function that may be changed by the function is
called ____.
a) output b) private c) public d) reference e) return ab) value ac) void
9. A type of parameter that is used when multiple results need to be communicated back is called ____.
a) output b) private c) public d) reference e) return ab) value ac) void
10. A function is designated as ____ if it only needs to be accessible within the current form.
a) output b) private c) public d) reference e) return ab) value ac) void
11. A function is designated as ____ if it needs to be accessible outside of the current form.
a) output b) private c) public d) reference e) return ab) value ac) void
12. The ____ operation can be used to tell the computer that the function’s work is done.
a) output b) private c) public d) reference e) return ab) value ac) void
13. When creating a program that sends and displays data on a secondary form, the first thing you do is ____.
a) Call showDialog to display the secondary form
b) Define a variable to be used in referencing the secondary form
c) Initialize the secondary form variable
d) Use the form variable to communicate data to the secondary form
pf2

Partial preview of the text

Download Quiz on C# Built-in Functions and Bob's Burger Barn Project and more Quizzes Computer Science in PDF only on Docsity!

CSCI 105 Introduction to Computer Programming Spring, 2009 Surprise Quiz # 20 Points MULTIPLE CHOICE:

  1. How many arguments are necessary for the built-in C# function Math.Sqrt()? a) 0 b) 1 c) 2 d) 3 e) 4
  2. How many arguments are necessary for the built-in C# function Close()? a) 0 b) 1 c) 2 d) 3 e) 4
  3. How many arguments are necessary for the built-in C# function String.Format()? a) 0 b) 1 c) 2 d) 3 e) 4
  4. How many arguments are necessary for the built-in C# function Math.Pow()? a) 0 b) 1 c) 2 d) 3 e) 4
  5. How many arguments are necessary for the built-in C# function Convert.ToInt32()? a) 0 b) 1 c) 2 d) 3 e) 4
  6. A data type provided for a function will not explicitly return a value is called ____. a) output b) private c) public d) reference e) return ab) value ac) void
  7. A type of parameter which is used to provide a value to a function is called ____. a) output b) private c) public d) reference e) return ab) value ac) void
  8. A type of parameter which is used to provide information to a function that may be changed by the function is called ____. a) output b) private c) public d) reference e) return ab) value ac) void
  9. A type of parameter that is used when multiple results need to be communicated back is called ____. a) output b) private c) public d) reference e) return ab) value ac) void
  10. A function is designated as ____ if it only needs to be accessible within the current form. a) output b) private c) public d) reference e) return ab) value ac) void
  11. A function is designated as ____ if it needs to be accessible outside of the current form. a) output b) private c) public d) reference e) return ab) value ac) void
  12. The ____ operation can be used to tell the computer that the function’s work is done. a) output b) private c) public d) reference e) return ab) value ac) void
  13. When creating a program that sends and displays data on a secondary form, the first thing you do is ____. a) Call showDialog to display the secondary form b) Define a variable to be used in referencing the secondary form c) Initialize the secondary form variable d) Use the form variable to communicate data to the secondary form
  1. When creating a program that sends and displays data on a secondary form, the second thing you do is ____. a) Call showDialog to display the secondary form b) Define a variable to be used in referencing the secondary form c) Initialize the secondary form variable d) Use the form variable to communicate data to the secondary form
  2. When creating a program that sends and displays data on a secondary form, the third thing you do is ____. a) Call showDialog to display the secondary form b) Define a variable to be used in referencing the secondary form c) Initialize the secondary form variable d) Use the form variable to communicate data to the secondary form
  3. When creating a program that sends and displays data on a secondary form, the fourth thing you do is ____. a) Call showDialog to display the secondary form b) Define a variable to be used in referencing the secondary form c) Initialize the secondary form variable d) Use the form variable to communicate data to the secondary form Questions 17-20 deal with Project 6.1 – Bob’s Burger Barn:
  4. The project consisted of ____ forms. a) 1 b) 2 c) 3 d) 4
  5. Bob’s Burger Barn does not sell ____. a) burgers b) french fries c) milk shakes d) soft drinks
  6. A burger at Bob’s Burger Barn costs ____. a) $0.99 b) $1.59 c) $2.29 d) $3.
  7. The Daily Summary does not display the ____. a) largest order b) number of orders c) smallest order d) total number of burgers sold e) total value of all orders
  8. Extra Credit Super Mega Bonus Question : The midterm lab exam next Wednesday is worth ____ percent of my overall grade in the CSCI105 course. a) 5 b) 6 c) 7.5 d) 8 e) 10 ab) 12.5 ac) 15