Test 1

Test 1

University

49 Qs

quiz-placeholder

Similar activities

Event Driven Handouts 1 & 2

Event Driven Handouts 1 & 2

University

45 Qs

Assignment Quiz

Assignment Quiz

University

47 Qs

Test 2

Test 2

University

49 Qs

Technical MCQ

Technical MCQ

University

45 Qs

CS 241 Practice Test Week 3

CS 241 Practice Test Week 3

9th Grade - University

54 Qs

IP MIDTERM

IP MIDTERM

University

45 Qs

Ngôn ngữ lập trình C/C++

Ngôn ngữ lập trình C/C++

University

50 Qs

Understanding Loops in Programming

Understanding Loops in Programming

9th Grade - University

54 Qs

Test 1

Test 1

Assessment

Quiz

Computers

University

Easy

Created by

Gabe Vandzura

Used 5+ times

FREE Resource

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

// This is a comment

The above comment line may be replaced with the comment line given below

\* This is a comment *\

T

F

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The variable name score.1 is a valid variable name in Visual C++?

T

F

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <iostream>;

There is syntax error in the above preprocessor directive.

T

F

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While declaring a named constant, the semicolon (;) is not used at the end of the line.

T

F

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression following the word case in the switch statement cannot be a variable.

T

F

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int value;

value = 9.99;      // floating point value is assigned to integer variable

After execution of the above statement, 9 will be stored in the variable value after the value is trucated.

T

F

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int item = 7;

cout << "The value in item = " << "item" << endl;


The above code will display:

The value in item =  7


T

F

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?