SECCIÓN II: VOCABULARIO   Dos amigos por correspondencia. Ós…

SECCIÓN II: VOCABULARIO   Dos amigos por correspondencia. Óscar and Eva are penpals. Eva is from Cleveland, Ohio, and Óscar is from Chile. First, read over the string of texts that they have sent each other. Then complete their conversation according to the context of the sentences. Select the word that best completes the sentence. If a logical response isn’t provided, select ninguna de las posibilidades (none of the possibilities). (1 pt. each; 10 pts. total)   Óscar: Hola Eva. ¿Qué tal? ¿Qué tiempo hace en Cleveland? Eva: Pues, ya sabes, es diciembre y (1)[1].  La temperatura hace 28 grados F (-2.2 C). Óscar: ¡Ufff! Aquí no, es el verano aquí porque vivimos en el hemisferio sur.  (2)[2], pero no es horrible. De hecho, es un buen día para ir a la playa y (3)[3]. Me encanta el océano en el verano. Eva: Pues, tienes suerte, aquí ahora no puedo ir al lago (lake) Erie para hacer (4)[4], pero sí, a veces en enero o febrero podemos (5)[5] en el lago porque el lago es puro hielo. Óscar: Entonces, me imagino que la rutina de hacer ejercicio es diferente en el invierno. ¿Qué hace la gente allí? Eva: A ver, a muchos de mis compañeros de clase les gusta ir al gimnasio para jugar al básquetbol. También allí pueden levantar (6)[6]. Para divertirnos los fines de semana, pasamos tiempo con amigos. (7)[7] a comer en un restaurante o si no hace muy mal tiempo, damos (8)[8] en el centro o en uno de los parques de la ciudad. Es fantástico estar afuera (outside) un poco. Óscar: Y ¿los Cleveland Guardians? ¿Dónde se entrenan si nieva tanto en el invierno? Eva: ¡Ah! Los Guardians, soy una (9)[9] del equipo de béisbol. Creo que llevan sus bates y (10)[10] a una ciudad en Arizona que se llama Goodyear. Óscar: A ver si un día te visito en Cleveland para ver un partido. Me encantaría, en serio.    

Gramática: B. Los verbos irregulares del pretérito: Cuidando…

Gramática: B. Los verbos irregulares del pretérito: Cuidando a mi prima Gloria. One day, Gregorio’s aunt and uncle needed him to babysit his little cousin Gloria. Help him retell his story of that day by first choosing the correct verb to complete the sentence, and then typing the correct preterit form of that verb in the blank. (2 pts. each: 1 pt. correct verb, 1 pt. correct preterit form; 28 pts. total) MODELO: Hace dos semanas que hubo un huracán en Florida. (haber, ser, ir, venir)  Un día mis padres me (1)[1](tener, decir, poner, ver) que yo (2)[2](tener, dar, poder, traer)  que cuidar a mi prima, Gloria. Ese día yo (3)[3](hacer, ser, saber, querer) que es difícil cuidar a una chica de 5 años. Gloria (4)[4](venir, haber, ir, hacer)  muchas actividades ese día. Primero, ella (5)[5](querer, ir, saber, dar)  a su clase de baile. Luego, volvimos a casa a almorzar. Entonces, yo le (6)[6](decir, hacer, estar, poder)  el almuerzo: un sándwich de jamón y queso, y papas. ¿Fácil no? Pero no, ella insistió en postre. Ella me (7)[7](ser, ir, traer, ver)  una receta para galletas, pero en el refrigerador no encontramos huevos. Así que nosotros (8)[8](querer, poner, poder, ir) al supermercado y los compramos. Regresamos a casa otra vez, y empezamos a hacer las galletas. Ella (9)[9](querer, hacer, traer, ver)  calentar el horno, yo le grité, ¡no! ¡es peligroso (dangerous)! Gloria me (10)[10](ser, ir, dar, ver)  los huevos, la mantequilla y los otros ingredientes. Mezclamos todo y horneamos las galletas. Las galletas (11)[11](poder, traer, ser, estar)  en el horno por 10 minutos, y luego las sacamos. Nosotros no (12)[12](poner, poder, hacer, ser) comerlas inmediatamente por estar tan calientes. ¡Qué lástima! Por fin, nos sentamos en el sofá y (13)[13](ver, venir, saber, ir)  un programa en la televisión mientras comíamos las galletas. Cuando sus padres llegaron esa noche, yo (14)[14](ponerse, hacer, tener, querer) contento al verlos, en serio.

Write an interface called Reversible. The interface should h…

Write an interface called Reversible. The interface should have one method called reverse that has no parameters and doesn’t return a value. Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers.

Shared Instructions Indicate the result of the snippet of co…

Shared Instructions Indicate the result of the snippet of code, assuming that it is in a main method of a class. More specifically, you must indicate one of the following: the output of the code, if the code compiles and runs without errors which statement(s) don’t compile (line #s, first line is #1) and why, if the code doesn’t compile when put in a main method the type of runtime error and the statement that caused it (line #, first line is #1) if the code compiles but doesn’t run properly Shared Code public class Foo {    public String method1() { return “foo 1”; }    public String method2() { return “foo 2”; }}public class Bar extends Foo {    public String method3() { return “bar 3”; }}public class Baz extends Bar {    public String method1() { return “baz 1”; }}public class Mumble extends Foo {    public String method2() { return “mumble 2”; }} Unique Snippet Mumble m = new Mumble();Foo f = (Foo) m;System.out.print(f.method1() + ((Bar) f).method2());

Indicate the Big-O notation and growth rate for the followin…

Indicate the Big-O notation and growth rate for the following algorithms: selection sort, insertion sort, merge sort. Use this template for your answer (please type fully – you cannot copy): Selection Sort: [Big-O notation], [growth rate] Insertion Sort: [Big-O notation], [growth rate] Merge Sort: [Big-O notation], [growth rate]

Write code for a public static method named numLinesWithPref…

Write code for a public static method named numLinesWithPrefix. The method receives a File and a String and returns an int: the number of lines in the file that start with the input String. If there is an error reading the file, the method should propagate an IOException. You must use exception handling code; you cannot use File methods or Scanner hasX methods directly. Make sure to close every object that should be closed before returning. Don’t write import statements or a class header. As part of error handling, use the Scanner’s NoSuchElementException. HINT: use String’s instance method startsWith(String prefix). Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers

Shared Instructions Indicate the result of the snippet of co…

Shared Instructions Indicate the result of the snippet of code, assuming that it is in a main method of a class. More specifically, you must indicate one of the following: the output of the code, if the code compiles and runs without errors which statement(s) don’t compile (line #s, first line is #1) and why, if the code doesn’t compile when put in a main method the type of runtime error and the statement that caused it (line #, first line is #1) if the code compiles but doesn’t run properly Shared Code public class Foo {    public String method1() { return “foo 1”; }    public String method2() { return “foo 2”; }}public class Bar extends Foo {    public String method3() { return “bar 3”; }}public class Baz extends Bar {    public String method1() { return “baz 1”; }}public class Mumble extends Foo {    public String method2() { return “mumble 2”; }} Unique Snippet Object o = new Bar();String s = ((Bar) o).method1();System.out.print(s);