This Study Resource Was: (CPP) Chapter 1 Assessment Quiz Instructions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1/11/2021 Quiz: [CPP] Chapter 1 Assessment

[CPP] Chapter 1 Assessment


Started: Jan 11 at 9:58pm

Quiz Instructions

Welcome to chapter 1 assessment

This test will help you evaluate what you have learned in chapter 1. You will have 40 minutes to answer
31 questions. You will not be able to see the correct answers. If you are not satisfied with your result,
you can re-take the test once. Good luck!

m
er as
Question 1 1 pts

co
eH w
o.
rs e
What will happen when you attempt to compile and run the following code?
ou urc
#include <vector>
o

#include <iostream>
aC s
vi y re

int main ()
{
std::vector<int> v1; // LINE I
v1.push_back(10); // LINE II
ed d

std::cout<<v1.front()<<":"<<v1.back()<<std::endl; // LINE III


ar stu

return 0;
}
sh is

code compiles and executes successfully


Th

program displays 0:10

compilation fails due to error in line III

compilation fails due to error in line II

compilation fails due to error in line I

Next 
https://www.coursehero.com/file/77680777/Quiz-CPP-Chapter-1-Assessment-1pdf/

https://1384142.netacad.com/courses/1095069/quizzes/9560187/take/questions/47504984 1/2
1/11/2021 Quiz: [CPP] Chapter 1 Assessment

Not saved Submit Quiz

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
sh is
Th

https://www.coursehero.com/file/77680777/Quiz-CPP-Chapter-1-Assessment-1pdf/

https://1384142.netacad.com/courses/1095069/quizzes/9560187/take/questions/47504984 2/2
Powered by TCPDF (www.tcpdf.org)

You might also like