I 4 test 3

I 4 test 3

12th Grade

46 Qs

quiz-placeholder

Similar activities

IT alapismeretek

IT alapismeretek

10th Grade - Professional Development

49 Qs

QUIZZ PKK - Hak Atas Kekayaan Intelektual (HAKI)

QUIZZ PKK - Hak Atas Kekayaan Intelektual (HAKI)

KG - Professional Development

50 Qs

EVALUACIÓN PARCIAL DE INFORMÁTICA

EVALUACIÓN PARCIAL DE INFORMÁTICA

9th - 12th Grade

50 Qs

Komputer Akuntansi XII AK1

Komputer Akuntansi XII AK1

KG - 12th Grade

50 Qs

COMPTIA Review Units 1-6 Practice Exam

COMPTIA Review Units 1-6 Practice Exam

9th - 12th Grade

41 Qs

ALGORITHM AND FLOWCHART

ALGORITHM AND FLOWCHART

12th Grade - University

51 Qs

TIN HỌC KHỐI 5 HK1

TIN HỌC KHỐI 5 HK1

1st Grade - University

42 Qs

CompTIA ITFundamentals CRAM

CompTIA ITFundamentals CRAM

6th Grade - University

46 Qs

I 4 test 3

I 4 test 3

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Lawrence Nelson

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?