
I 4 test 3

Quiz
•
Computers
•
12th Grade
•
Medium
Lawrence Nelson
Used 3+ times
FREE Resource
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function adds a list of numbers and returns the sum. The function head is:
int sum(int list)
void sum(int list)
void sum(int *a, int b)
int sum(int *a, int b)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function adds a list of numbers and returns the sum. The function head is:
float sum(float list)
void sum(float list)
void sum(int *a, int b)
float sum(float *a, int b)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This loops through a string:
for (int i=0; i<100; i++)
for (char a= 0; a < 100; a++)
for (int i=0; str[i]!='\0'; i++)
for (int i=0; i!='\0'; i++)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a void function called stuff(). Which of the following is a legal call to stuff()?
stuff();
int x = stuff()
cout << stuff();
stuff() = 8;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a function called stuff(). Stuff takes an integer and returns a Boolean. Which of the following is a legal call to stuff()?
stuff();
if (stuff(8) == False)
cout << stuff();
stuff(2) = true;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function called stuff() takes an integer and changes its value. A possible function head is:
int stuff()
void stuff(int a)
int & stuff()
void stuff(int &a)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function called stuff() changes the values in a list. A possible function head is:
int stuff()
void stuff(char *a)
int * stuff()
void stuff(int &a, int b)
Create a free account and access millions of resources
Similar Resources on Wayground
46 questions
PYTHON PROGRAMMING - FINAL EXAM REVIEW

Quiz
•
9th - 12th Grade
50 questions
C Programming Quiz

Quiz
•
12th Grade
42 questions
ภาษาซี

Quiz
•
9th - 12th Grade
44 questions
UTS IF X - GENAP

Quiz
•
12th Grade - University
51 questions
EINSTEIN 2ND PERIODICAL TEST

Quiz
•
9th Grade - University
45 questions
Pemrograman Dasar_X_PAS_24_25

Quiz
•
10th Grade - University
50 questions
RPL Basisdata

Quiz
•
12th Grade
50 questions
US_PemDas_1920

Quiz
•
12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade