• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 13 páginas
Examen

COMP_1020_Sample_Exam_1__ANS

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

COlVIP 1020: Sa111ple Exa1n I U:dASS - LO"ELL );'amc: h~~ Kc:/ ---------- Student ID: Question f Po-int ~_J 1 ~l-1 ~ -- ----l- --' 2 --~JO 1 3 Ill l ·1 15 5 23 4 1-----G- I l I 7 10 Tot al 1:l~ '--- .L - hist ructions: 1. This cxa111i11a tiun contains 13 pagf';,. incl11di11g t his pag'. 2 ·rile your ;111~we rs in this bookl'l If you must write· 011 the hnck pa g,'. pka:-c' i11dirnt,' Y'I':'" ct,,arh· 0 11 the front of the pag,' that you hav? writte n 011 the back of the pagt' · 3. Yun may tbe rC':-C•lll"CC': . including lec turC' 11,tt' "· hooks. other srnd'nt:- ,,r utll'r C'nginN'r:. but ~-,,u ' s hould pro·idt· a rl'f·rence. ,I. Yuu may u,-,f' a calnilat ur. Yuu 111a~· 11, t sh a r,' 3 cakulntor with a11y,rn1' . Question 1· L" k · m ed Lists l40ptsJ (a) (10 points) Pl o · easC' complete th £ I ne c1rc-ularly singly linked !is/ o lowing function to concat . enate two circular) . . , ' ,,,,., 'r y smglv lmked hst into • s tru r t node Node 3 b I I U l l node { • int data ' Node• nc~t } ; Node• c / oncatcnate{Nod . • • c• I,~ t J N d J Pr d ' 0 c• I Isl 2) { O UC.(• & DC

Vista previa del contenido

COlVIP 1020: Sa111ple Exa1n I

U:dASS - LO\\"ELL




);'amc: h~~ Kc:/ ----------
Student ID :




Question f Po-int ~_J
1 ~l-1 ~
-- ----l- -- '
2 - - ~ JO 1
3
·1
Ill
15
l
4
5 23
1-----
G- I lI
7 10
Tot al 1:l~
'--- .L -




hist ructions:

1. This cxa111i11a tiu n contains 13 pagf';,. incl11di11g t his pag<'.
2 \\·rile your ;111~we rs in this bookl<'l If you mus t write· 011 the hnck pa g,'. p ka:-c' i11dirnt,' Y<'I':'\" ct,,arh·
0 11the front of the pag,' that you hav<? writte n 011 the back of t he pagt' ·

3. Yu n may tbe a.uy rC':-C•lll"CC':< . including lec turC' 11,>tt' "· hooks . other srnd<'nt:- ,,r utll<'r C'nginN'r:<. but ~-,,u
' s hou ld pro\·idt· a rl'f<·rence.
,I. Yuu may u,-,f' a calnilat ur. Yuu 111a ~· 11, >t s h a r,' 3 cakulnt or with a11y,rn1' .

, Question 1·· L m
" ked Lists
l40ptsJ

(a) o(10 points)
·
ne c1rc-ularly singly linked
, ' ,,,,., 'r
!is/
PleasC' complete th £ I
o lowing function to concatenate two circular)
. . .
y smglv lmked hst into

• s tru r t node Node

3 b IIUl l node {
• int data
' Node• nc~t
};


Node•
• Pr• d c oncatcnate{Nodc• I,~ . tJ 0
J
/ ' N d c• I I sl 2) {
O UC. (• & DC\\ J
p o111 ts to i'i,t \\hH.h c-on ta1n~ J
• of li sti;. t" new list Thr. ~ro• ,~ti followcd br) I11<12 ti pointer which
nU"1C'llt'< (jqt I nn< · 2 point
,Gt H!'tlltll,r
to th,
tail " of thr.




l'\o ~ "' b=-"'p-
.tf ( Lis-\-L -=-: N JLL)
(<t ~~ V\ l\ sr i I
.

:: !'lJ.Ll)
Ll ~ -t-1 ;




2

Información del documento

Subido en
21 de febrero de 2026
Número de páginas
13
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Abbyy01
3.5
(13)
Vendido
98
Seguidores
33
Artículos
1332
Última venta
3 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes