Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Study Guide For Creative Tech
Uploaded by
Donald richie Cubero
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download
Save
Save Study-Guide-for-Creative-Tech For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Study Guide For Creative Tech
Uploaded by
Donald richie Cubero
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Study-Guide-for-Creative-Tech For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Study-Guide-for-Creative-Tech For Later
You are on page 1
/ 3
Search
Fullscreen
Study Guide
1. Which of the following is the correct way to start a C++ program?
Programs start with #include <iostream> to include the input/output library.
The main() function is required as the entry point.
2. What is the file extension of a C++ program?
C++ source files typically use the .cpp extension.
3. Which library is used for input and output in C++?
The iostream library is used for input (cin) and output (cout).
4. What is the standard namespace in C++?
The std namespace is the standard namespace and avoids prefixing std:: for objects like
cout and cin.
5. How do you print text in C++?
Use cout << "Text"; for outputting text.
6. Which symbol is used to end a statement in C++?
Statements in C++ end with a semicolon (;).
7. What does "int" represent in C++?
The int data type represents integer numbers.
8. What does the keyword "return" do in a function?
It sends a value back to the caller and ends the function.
9. What is the output of the following code snippet?
cout << "Hello, World!";
The output is Hello, World!.
10. Which of the following is a valid C++ comment?
Use // for single-line comments or /* */ for multi-line comments.
11. What is "cin" used for?
The cin object is used for taking input from the user.
12. How do you declare a variable in C++?
Declare variables with the syntax dataType variableName;.
13. Which of the following is NOT a valid data type in C++?
word is not a valid data type in C++.
14. What is the default value of an uninitialized variable in C++?
Uninitialized variables have a garbage value.
15. Which loop is guaranteed to execute at least once?
The do-while loop executes at least once.
16. How do you create a constant in C++?
Use const variableName; to declare constants.
17. What does "bool" represent in C++?
The bool data type represents Boolean values (true or false).
18. What is the use of the "if" statement in C++?
It is used to make decisions based on conditions.
19. How do you start a block of code in C++?
Use curly braces {} to define a block of code.
20. What is the output of the following code snippet?
int x = 5;
cout << x;
The output is 5.
21. Which header file is essential for input/output operations in C++?
The iostream header file is required for input/output operations.
22. What does the following code do?
int arr[5];
Declares an integer array of size 5.
23. Which keyword is used to define a function in C++?
Functions can be defined using the syntax returnType functionName().
24. What is the output of the following code snippet?
int a = 10, b = 20;
cout << a + b;
The output is 30.
25. What will the following code produce?
int x = 10;
x++;
cout << x;
The output is 11.
26. Which keyword is used to allocate memory dynamically in C++?
Use new to allocate memory dynamically.
27. Which of the following is NOT a feature of C++?
C++ is not platform-independent.
28. What symbol is used to declare a pointer in C++?
Use * to declare pointers.
29. What is the purpose of the "break" statement?
It terminates a loop or switch statement.
30. What is the output of the following code?
for (int i = 0; i < 3; i++) {
cout << i;
}
The output is 012.
31. Which of the following is a valid way to declare a string in C++?
Strings can be declared as string s = "Hello"; or char s[] = "Hello";.
32. What keyword is used to create an object in C++?
Use the new keyword to create objects dynamically.
33. What is the typical size of an "int" variable in most systems?
The size of an int is typically 4 bytes.
34. What does the keyword "class" define in C++?
A class is a blueprint for creating objects.
35. What is the purpose of the "continue" statement in a loop?
It skips the current iteration and moves to the next one.
36. Which operator is used to access members of a class in C++?
Use the dot operator (.) or arrow operator (->) for accessing class members.
37. How do you write an exception handler in C++?
Use try and catch blocks for exception handling.
38. What is the correct syntax for a "for" loop in C++?
Use the syntax for (int i = 0; i < n; i++) { // code }.
39. What is the purpose of the "delete" keyword in C++?
The delete keyword frees dynamically allocated memory.
40. What is the purpose of the "private" access specifier in C++?
The private access specifier restricts access to class members.
You might also like
Antiquitex (6 X 9)
PDF
No ratings yet
Antiquitex (6 X 9)
6 pages
Optometry AND Ophthalmology: Kerala Government Optometrists Association PSC Training
PDF
100% (7)
Optometry AND Ophthalmology: Kerala Government Optometrists Association PSC Training
137 pages
ICT Questions
PDF
No ratings yet
ICT Questions
2 pages
Structured Programming Exam New
PDF
No ratings yet
Structured Programming Exam New
4 pages
C++ Viva Questions
PDF
No ratings yet
C++ Viva Questions
6 pages
C MCQ
PDF
No ratings yet
C MCQ
18 pages
C++ Questions With Answers by Clinton
PDF
No ratings yet
C++ Questions With Answers by Clinton
17 pages
C++ MCQ - QB
PDF
No ratings yet
C++ MCQ - QB
31 pages
Question Bank C++
PDF
No ratings yet
Question Bank C++
22 pages
List of C++ Multiple-Choice Questions and Answers
PDF
No ratings yet
List of C++ Multiple-Choice Questions and Answers
63 pages
Pretest (Finals)
PDF
No ratings yet
Pretest (Finals)
18 pages
Who Invented C++
PDF
No ratings yet
Who Invented C++
11 pages
Basic Programming Questions
PDF
No ratings yet
Basic Programming Questions
7 pages
CS Unit 2
PDF
No ratings yet
CS Unit 2
8 pages
New DOC Document
PDF
No ratings yet
New DOC Document
8 pages
C++ Task2
PDF
No ratings yet
C++ Task2
5 pages
C++ Q Paper With Answer
PDF
No ratings yet
C++ Q Paper With Answer
2 pages
CSC201 Past Questions and Answers
PDF
No ratings yet
CSC201 Past Questions and Answers
17 pages
Quiz 1 C++
PDF
No ratings yet
Quiz 1 C++
8 pages
Computer Studies Viva Voce
PDF
No ratings yet
Computer Studies Viva Voce
7 pages
C++++++++ Docx Bak-1
PDF
No ratings yet
C++++++++ Docx Bak-1
21 pages
Basic C++ Quiz
PDF
No ratings yet
Basic C++ Quiz
2 pages
C++ CBT Practice Questions
PDF
No ratings yet
C++ CBT Practice Questions
5 pages
C++ Interview Questions & Answers: BY HK2002
PDF
No ratings yet
C++ Interview Questions & Answers: BY HK2002
13 pages
MCQS C++
PDF
No ratings yet
MCQS C++
57 pages
C++ Viva Questions
PDF
No ratings yet
C++ Viva Questions
8 pages
C++ Question Bank
PDF
100% (1)
C++ Question Bank
32 pages
Practice Questions Computer Programing II
PDF
No ratings yet
Practice Questions Computer Programing II
9 pages
Structured Programming Exam Full
PDF
No ratings yet
Structured Programming Exam Full
4 pages
C++ OOP MCQ
PDF
No ratings yet
C++ OOP MCQ
3 pages
Exit Exam CPP - 2
PDF
No ratings yet
Exit Exam CPP - 2
23 pages
Reviewer For Comp Programming 1 Final Exam
PDF
No ratings yet
Reviewer For Comp Programming 1 Final Exam
5 pages
ICT Unit-6 Worksheet 3rd Round C++
PDF
No ratings yet
ICT Unit-6 Worksheet 3rd Round C++
10 pages
Important Question
PDF
No ratings yet
Important Question
39 pages
MCQ C
PDF
No ratings yet
MCQ C
119 pages
C++ Question Bank
PDF
No ratings yet
C++ Question Bank
8 pages
C++ Test
PDF
No ratings yet
C++ Test
3 pages
C - C++ by Mahad
PDF
No ratings yet
C - C++ by Mahad
33 pages
C
PDF
No ratings yet
C
5 pages
MCQ of CPP
PDF
No ratings yet
MCQ of CPP
12 pages
C++ Common Questions
PDF
No ratings yet
C++ Common Questions
11 pages
C++ Interview
PDF
No ratings yet
C++ Interview
6 pages
Home C++ Q & A
PDF
No ratings yet
Home C++ Q & A
80 pages
MCQs On C++
PDF
No ratings yet
MCQs On C++
7 pages
C
PDF
No ratings yet
C
23 pages
C++ MCQ Based On Learning Outcomes
PDF
No ratings yet
C++ MCQ Based On Learning Outcomes
8 pages
MCQ 2022
PDF
No ratings yet
MCQ 2022
16 pages
I.Choose The Correct Answer: 35 X 1 35: Optim Test - 3
PDF
No ratings yet
I.Choose The Correct Answer: 35 X 1 35: Optim Test - 3
3 pages
C++ MCQs
PDF
No ratings yet
C++ MCQs
21 pages
Model Exam - Introduction To Computing
PDF
No ratings yet
Model Exam - Introduction To Computing
12 pages
Document
PDF
No ratings yet
Document
19 pages
C
PDF
No ratings yet
C
9 pages
Loki Oop
PDF
No ratings yet
Loki Oop
4,280 pages
C++ Quiz
PDF
No ratings yet
C++ Quiz
2 pages
MCQ and T (Or) F C++
PDF
100% (1)
MCQ and T (Or) F C++
10 pages
SBL Part 1 Viva Questions
PDF
100% (2)
SBL Part 1 Viva Questions
11 pages
Chapter 1 To 4
PDF
No ratings yet
Chapter 1 To 4
50 pages
Here Are 1000 MCQs On C
PDF
No ratings yet
Here Are 1000 MCQs On C
18 pages
Pynux Soft Solutions
PDF
No ratings yet
Pynux Soft Solutions
2 pages
California Baptist University, Online & Professional Studies
PDF
No ratings yet
California Baptist University, Online & Professional Studies
9 pages
C++ Learn in 24 Hours
From Everand
C++ Learn in 24 Hours
Alex Nordeen
No ratings yet
C Programming
From Everand
C Programming
Netra
No ratings yet
Science Brochure
PDF
No ratings yet
Science Brochure
2 pages
Gamification
PDF
No ratings yet
Gamification
10 pages
Research C1
PDF
No ratings yet
Research C1
3 pages
Gamification
PDF
No ratings yet
Gamification
10 pages
Creating Research Title
PDF
No ratings yet
Creating Research Title
12 pages
Math Q3 M1
PDF
No ratings yet
Math Q3 M1
5 pages
Game
PDF
No ratings yet
Game
1 page
CSD Final - Doc
PDF
No ratings yet
CSD Final - Doc
12 pages
Problem Set 3
PDF
No ratings yet
Problem Set 3
5 pages
Hopeless
PDF
No ratings yet
Hopeless
7 pages
Assignment 3
PDF
No ratings yet
Assignment 3
3 pages
Lab 4 Report
PDF
No ratings yet
Lab 4 Report
10 pages
User Manual: Temperature Transducer EDT 101
PDF
No ratings yet
User Manual: Temperature Transducer EDT 101
40 pages
OS Objective Type
PDF
No ratings yet
OS Objective Type
16 pages
Reviewer 4Th Quarter
PDF
No ratings yet
Reviewer 4Th Quarter
2 pages
File Organization in DBMS
PDF
No ratings yet
File Organization in DBMS
6 pages
Volumetric Efficiency
PDF
No ratings yet
Volumetric Efficiency
7 pages
13d-Waves and Optics FR Practice Problems-ANSWERS
PDF
No ratings yet
13d-Waves and Optics FR Practice Problems-ANSWERS
28 pages
Logfile
PDF
No ratings yet
Logfile
19 pages
Properties of Fluids
PDF
No ratings yet
Properties of Fluids
26 pages
PLSQL
PDF
No ratings yet
PLSQL
48 pages
404MKT - Marketing Strategy - 2019
PDF
No ratings yet
404MKT - Marketing Strategy - 2019
2 pages
Module 5 HSC Physics Notes
PDF
No ratings yet
Module 5 HSC Physics Notes
8 pages
Wireless EV Charging Parking Lot Model Project Report
PDF
No ratings yet
Wireless EV Charging Parking Lot Model Project Report
57 pages
Object Oriented Programming Lab-10 (Polymorphism and Abstract Classes)
PDF
100% (1)
Object Oriented Programming Lab-10 (Polymorphism and Abstract Classes)
5 pages
Counting Techniques: Presented By: Moraga, Shirley
PDF
No ratings yet
Counting Techniques: Presented By: Moraga, Shirley
25 pages
Em8 1session2.1
PDF
No ratings yet
Em8 1session2.1
56 pages
Chapter 45 Wex
PDF
No ratings yet
Chapter 45 Wex
72 pages
Mutable Plaits
PDF
No ratings yet
Mutable Plaits
12 pages
Rezolvare Subiecte Olimpiada Europeana de Matematica Pentru Fete 2015
PDF
100% (1)
Rezolvare Subiecte Olimpiada Europeana de Matematica Pentru Fete 2015
12 pages
LNG PIONEER Machinery OP Manual H2219
PDF
No ratings yet
LNG PIONEER Machinery OP Manual H2219
333 pages
Berkeley
PDF
No ratings yet
Berkeley
63 pages
Conceptual
PDF
No ratings yet
Conceptual
45 pages
Polymerization - High Cycle Valves: Gas To Flare
PDF
No ratings yet
Polymerization - High Cycle Valves: Gas To Flare
6 pages
Basic Unix Commands
PDF
No ratings yet
Basic Unix Commands
5 pages