CNIT123-QUIZ#07

Ace your homework & exams now with Quizwiz!

Which of the following special character is used with the printf( ) function in the C programming language to indicate a new line? a. \0 b. \n c. \l d. \t

b. \n

In HTML, each tag has a matching closing tag that's written with which of the following characters? a. ampersand ( & ) b. backward slash ( \ ) c. forward slash ( / ) d. bang ( ! )

c. forward slash ( / )

Which of the following logical operators in the C programming language is used to compare the equality of two variables? a. && b. == c. = d. ||a.

b. ==

Which of the following is the act of performing a task over and over? a. Branching b. Testing c. Remembering d. Looping

d. Looping

In a Perl program, to go from one function to another, you simply call the function by entering which of the following in your source code? a. comment b. keyword c. variable d. name

d. name

If you want to know what the Perl print command does, you can use which of the following commands? a. man perl print b. perl -h c. perl -h print d. perldoc -f print

d. perldoc -f print

Which of the following statements in C programming language is used to load libraries that hold the commands and functions used in your program? a. #include b. #import c. use d. package

a. #include

Which of the following logical operators in the C programming language is evaluated as true if both sides of the operator are true? a. && b. = c. || d. ==

a. &&

Which of the following mathematical operators in the C programming language increments the unary value by 1? a. ++ b. % c. & d. +

a. ++

UNIX was first written in assembly language. However, it was soon rewritten in what programming language? a. C b. Python c. Perl d. Smalltalk

a. C

Which of the following is a backdoor initiated from inside the target's network that makes it possible to take control of the target even when it's behind a firewall? a. reverse shell b. reverse port c. reverse door d. back shell

a. reverse shell

In the Perl programming language, which of the following keywords is used in front of function names? a. sub b. proc c. declare d. func

a. sub

In the Perl programming language, comment lines begin with the which of the following character(s)? a. // b. # c. $ d. %

b. #

T/F? Most programming languages have a way to branch, loop, and test.

True

Carelessly reviewing your program's code might result in having which of the following in your program code? a. variable b. branch c. bug d. virus

b. bug

Which of the following is a markup language rather than a programming language? a. C b. PHP c. HTML d. Perl

c. HTML

Which of the following is a mini-program within a main program that carries out a task? a. branch b. script c. loop d. function

d. function

T/F? Bugs are worse than syntax errors because a program can run successfully with a bug, but the output might be incorrect or inconsistent.

True

T/F? Security professionals often need to examine Web pages and recognize when something looks suspicious.

True

T/F? When a compiler finds errors, it usually indicates what they are so you can correct the code and compile the program again.

True

The print command for Perl is almost identical to the print command used in which of the following programming languages? a. C b. Smalltalk c. Java d. PHP

a. C

You can use the syntax /* and */ to accomplish what function when working with large portions of text? a. execute b. erase c. comment d. run

c. comment

T/F? You must always add "//" at the end of comment text when using C language. Correct! False

False

In the C programming language, which variable type holds the value of a single letter? a. Char b. Float c. String d. Const

a. Char

In the C programming language, which of the following show where a block of code begins and ends? a. braces b. dashes c. parenthesis d. brackets

a. braces

In the Perl programming language, variables begin with which of the following characters? a. ! b. $ c. % d. *

b. $

In object-oriented programming, a function contained in a class is called which of the following? a. variable function b. member function c. test function d. label function

b. member function

In the C programming language , which statement tells the compiler to keep doing what's in the brackets over and over and over? a. for ( ;; ) b. loop($) c. do(forever) d. continue

a. for ( ;; )

Which of the following takes you from one area of a program (a function) to another area? a. Dividing b. Looping c. Branching d. Testing

c. Branching

In object-oriented programming, which of the following are structures that hold pieces of data and functions? a. keywords b. objects c. classes d. variables

c. classes


Related study sets

Series 66 -- Fixed Income Basics

View Set

Module 4.1 Chapter 9. The Quest for Meaning.

View Set

Chapter 4 Communicating for success

View Set

NUR 113 Unit 3 Practice Questions

View Set

Listen - Chapters 8-11 | MUSIC 27

View Set