##Midterm 1 Review
What is a statement in C++ that begins with a ‘#’?
What is used to display information on the screen?
What two types of data are used to store numbers?
What will the following blocks of code display?
/** | |
* Converts .edu emails to an SSML string | |
* @param {String} email email address to be converted | |
* @return {String} email in SSML form | |
*/ | |
export function getSpeakableEmail(email) { | |
const tld = email.indexOf('.edu'); | |
if (tld >= 0) { | |
const body = email.slice(0, tld); | |
return `${body}<say-as interpret-as="spell-out">.edu</say-as>`; |
const { exec } = require('child_process'); | |
const functions = [ | |
'createSession', | |
'getGeneralResources', | |
'getFireResources', | |
'getMeaning', | |
'receiveMeaning', | |
'getHousingResources', | |
'receiveEmail', |
const { exec } = require('child_process'); | |
const functions = [ | |
'createSession', | |
'getGeneralResources', | |
'getFireResources', | |
'getMeaning', | |
'receiveMeaning', | |
'getHousingResources', | |
'receiveEmail', |
var elem = document.getElementsByClassName('container')[0]; | |
var header = document.createElement("div"); | |
var size = document.createElement("h1"); | |
var inner = document.createTextNode("Title Here"); | |
size.appendChild(inner); | |
header.appendChild(size); | |
header.appendChild(document.createElement("hr")) | |
elem.insertBefore(header, elem.firstChild); |
-- Gets the number of different technologies in a specific project | |
SELECT c.ID, c.first_name, c.last_name, count(tech_name) as num_technologies from clients c | |
RIGHT JOIN client_project cp on c.ID=cp.client_id | |
LEFT JOIN project_technology pt on cp.project_id=pt.project_id | |
group by c.ID; |
##Midterm 1 Review
What is a statement in C++ that begins with a ‘#’?
What is used to display information on the screen?
What two types of data are used to store numbers?
What will the following blocks of code display?
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
</div> | |
</div> |
series: [{ | |
name: "sample data", | |
data: [ | |
[name,count], | |
[name,count], | |
[name,count], | |
etc… | |
] | |
}] |
<?php | |
$images = array(); | |
$dir = opendir('../img/easyPhotoGallery/'); | |
while (($file = readdir($dir)) !== false) | |
{ | |
if (substr($file,0,1) !== ".") { //Ignore system files | |
$images[] = $file; | |
} |