Introduction to Programming Concepts and Languages, Exams of Nursing

A comprehensive overview of fundamental programming concepts and various programming languages. It covers topics such as machine code, programming language syntax, data types, variables, control structures, functions, objects, and algorithms. The document aims to introduce the basic principles and characteristics of different programming paradigms, including procedural, object-oriented, and event-driven programming. It also discusses the importance of programming language selection, the role of syntax and semantics, and the concept of persistence in software development. This resource would be valuable for students and learners who are new to the field of computer programming and are seeking to understand the foundational knowledge required to develop software applications.

Typology: Exams

2023/2024

Available from 08/27/2024

Toperthetop
Toperthetop 🇬🇧

3

(6)

28K documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Quiz 1: Check for Understanding
_____ is used by all computers. - correct answer ✔✔Machine code
Every programming language's source code is always written in _____. - correct answer ✔✔Plain Text
The closer a language is to machine code, the more difficult it is to write.
T or F - correct answer ✔✔True
What is true about higher-level programming languages? - correct answer ✔✔You worry less about the
actual hardware, the code is more readable
_____ checking will let you know if something is wrong with your code as you're typing it - correct
answer ✔✔Syntax
All of the following are downsides to interpreted code, except - correct answer ✔✔You need to interpret
code separately for different kinds of code
What is true about strong-typed languages? - correct answer ✔✔There are different kinds of variables
for different kinds of data
Which JavaScript statement puts the number 5 into the variable "temp"? - correct answer ✔✔Var temp
= 5;
Which of these is a correct string literal? - correct answer ✔✔"hello world"
Declare a JavaScript variable to hold the number of students in the class. - correct answer ✔✔var
studentCount
The assignment operator in JavaScript is _____. - correct answer ✔✔=
pf3
pf4
pf5

Partial preview of the text

Download Introduction to Programming Concepts and Languages and more Exams Nursing in PDF only on Docsity!

Quiz 1: Check for Understanding

_____ is used by all computers. - correct answer ✔✔Machine code Every programming language's source code is always written in _____. - correct answer ✔✔Plain Text The closer a language is to machine code, the more difficult it is to write. T or F - correct answer ✔✔True What is true about higher-level programming languages? - correct answer ✔✔You worry less about the actual hardware, the code is more readable _____ checking will let you know if something is wrong with your code as you're typing it - correct answer ✔✔Syntax All of the following are downsides to interpreted code, except - correct answer ✔✔You need to interpret code separately for different kinds of code What is true about strong-typed languages? - correct answer ✔✔There are different kinds of variables for different kinds of data Which JavaScript statement puts the number 5 into the variable "temp"? - correct answer ✔✔Var temp = 5; Which of these is a correct string literal? - correct answer ✔✔"hello world" Declare a JavaScript variable to hold the number of students in the class. - correct answer ✔✔var studentCount The assignment operator in JavaScript is _____. - correct answer ✔✔=

Which of the following is an invalid way of declaring a string? - correct answer ✔✔'this is a test" We use _____ to tell JavaScript where the statement ends. - correct answer ✔✔; The single line comment in JavaScript is _____. - correct answer ✔✔// Which IF-THEN statement is written correctly? - correct answer ✔✔If (a==b) {alert("true");} Which is the "Strict Equality" operator? - correct answer ✔✔=== How do you test if the score is 100? - correct answer ✔✔if (score == 100) {} Which one of the following is the strict equality operator? - correct answer ✔✔=== Where are returns generally found? - correct answer ✔✔In the last line of a function In JavaScript, variable scope is important _____. - correct answer ✔✔When defining variables for use in functions In JavaScript, you can embed an if statement within another if statement. T or F - correct answer ✔✔True Code blocks are surrounded with _____. - correct answer ✔✔{} How do you call a function named readUserInput? - correct answer ✔✔readUserInput What value do you get for a variable if you try to access it from outside its scope? - correct answer ✔✔Undefined

An immutable object cannot change after it has been created. T or F - correct answer ✔✔True When you create _____, you sketch out your programming in plain English before you write code. - correct answer ✔✔pseudocode Select the variable declaration that is the least favorable. - correct answer ✔✔Var $X_24Z You can describe a problem in pseudocode without having the necessary knowledge in that language. T or F - correct answer ✔✔True _____ does not have a syntax error. - correct answer ✔✔Var x = 100/0; You can use _____ for trace messages while debugging your code. - correct answer ✔✔alert You can get to the error console in Firefox, using the _____ menu. - correct answer ✔✔Tools What kind of data structure can include both data and functions? Programmers can also create relationships between these structure. - correct answer ✔✔object Select the option that is not an object. - correct answer ✔✔Var count = 13; _____ is not a programming language that uses object-oriented concepts. - correct answer ✔✔C _____ does not use garbage collection to manage memory. - correct answer ✔✔Assembly language C++, Java, and C# are object-oriented languages. T or F - correct answer ✔✔True

In programming, there is usually one optimal way, or algorithm, to accomplish a task. T or F - correct answer ✔✔False Which of the following is not an example of an algorithm? - correct answer ✔✔program When you save data to outlive the currently running program, it means you can close the program and the data will remain on the drive or in the database. What is this called? - correct answer ✔✔persistence Creating code that reacts to input from a user is called _____ programming. - correct answer ✔✔event- driven _____ is saving the state of the program. - correct answer ✔✔persistence Which of the following is considered an object? html h ul All of these answers - correct answer ✔✔All of these answers Select the event that is triggered when you enter your name and click outside the input box. - correct answer ✔✔onblur What kind of data structure can include both data and functions? Programmers can also create relationships between these structure. - correct answer ✔✔object Which of the following languages has influenced every other programming language, and is not an object-oriented language? - correct answer ✔✔C Which of the following is a completely object-oriented language, interpreted, and easier to approach? - correct answer ✔✔Ruby