SlideShare a Scribd company logo
1 of 5
CÂU TRẢ LỜI MÀU ĐỎ CÓ KHẢ NĂNG PHẦN LỚN
LÀ ĐÚNG. HY VỌNG LÀ ĐÚNG HẾT THẬT ^^
1


Keywords can be used as variables names.
False
True
2


The keywords in C are case-sensitive.
False
True
3


The relational operators > >= < <= have the same precedence.
False
True
4
The Repeat?Until loop exits when the condition evaluates to _________.


False
True
5


We cannot use nested if statements in a Pseudocode.
False
True
6


"default" statement in C's switch case is similar to the _______________ the statement in a pseudocode.
END
END CASE
OTHERWISE
7


What will be the output of the following code?
main()
{
int a=13, b=20;
if( i=15 || b > 30)
printf("Hello");
else
printf("Sorry");
}
Hello
Sorry
Syntax Error
8


main()
{
int i=5;
while(i=2)
printf("Global Corporation");
} What will be the output?
Global
Global Corporation
Runtime Error
Syntax Error
9


main()
{
int s1=2;
while(s1==2)
{
x=x-1;
printf("%d",x);
}
} What will be the output:
1
2
Runtime Error
10


main()
{
int i=1;
while(i<=5);
{
printf("%d",i);
i++;
}
} what will be the output?
Logical Error
Runtime Error
Syntax Error
11


main()
{
int s1=1;
for( ;s1; )
printf("A");
} What will be the output?
A
Runtime Error
Syntax Error
12
Which of the following is/are the tool/s for debugging?


Break point
Check point
Error Tracing
Simulator
Trace routines
13
The keyword/s used to take user input in a Pseudocode is/are


Accept
Input
Prompt
Read
Take
14
The Logical operators are:


And
False
Not
Or
True
15
Identify the methods used for debugging.


Dry Run
Independent Inspection
Structured walk through
Testing
Tracing
16
Which of the following are the delimiters used in programming languages?


()
< >
[]
{}
Tracing
17
Which of the following will generate a Logical error?


avg=a+b c (c=0)
IF (A< >0 AND A< >1) Then??.
Infinite loop
Read Abc.doc (abc.doc does not exist)
Tracing
18
Which of the following statements are true?


The # symbol may not be used as the first character of a variable
The $ symbol may not be used as the first character of a variable
The % is used to calculate a percentage thus: 10 % 20=50
The / operator is used to divide one value by another
19
Which of the following statements with respect to Program Bug are True?


A bug is a semantic error in a program.
The program with a bug will compile and run but produces incorrect or unexpected results.
The program with a bug will fail to compile.
To find a bug, you can use the method of tracing through the program by hand, step-by-step.
You can use a special program called a debugger, which will help you find bugs.
20
A flowchart can have more than one START & one STOP.
False
True
21


When the loop encounters a break statement, it immediately exits the program.
False
True
22


The subprogram in a pseudocode can be further divided into smaller programs.
False
True

More Related Content

Viewers also liked

De so 1
De so 1De so 1
De so 1kiennt
 
When I lived in USA
When I lived in USAWhen I lived in USA
When I lived in USAGabyC21
 
Jayne's Individual Presentation
Jayne's Individual Presentation Jayne's Individual Presentation
Jayne's Individual Presentation Jayne Toh Yew Zhen
 
Pilonidal sinus defect closure, reconstruction methods
Pilonidal sinus defect closure, reconstruction methodsPilonidal sinus defect closure, reconstruction methods
Pilonidal sinus defect closure, reconstruction methodsAhmed Almumtin
 
Challenges Of Project Management
Challenges Of Project ManagementChallenges Of Project Management
Challenges Of Project Managementashutoshsachan
 
Conjunto Residencial Salamar1
Conjunto Residencial Salamar1Conjunto Residencial Salamar1
Conjunto Residencial Salamar1rah_falcon
 

Viewers also liked (13)

Islam di Ambon
Islam di AmbonIslam di Ambon
Islam di Ambon
 
WISP France
WISP FranceWISP France
WISP France
 
Al Ghoyah Wat Taqrib #3
Al Ghoyah Wat Taqrib #3Al Ghoyah Wat Taqrib #3
Al Ghoyah Wat Taqrib #3
 
De so 1
De so 1De so 1
De so 1
 
When I lived in USA
When I lived in USAWhen I lived in USA
When I lived in USA
 
Al Ghoyah Wat Taqrib #1
Al Ghoyah Wat Taqrib #1Al Ghoyah Wat Taqrib #1
Al Ghoyah Wat Taqrib #1
 
Jayne's Individual Presentation
Jayne's Individual Presentation Jayne's Individual Presentation
Jayne's Individual Presentation
 
Pilonidal sinus defect closure, reconstruction methods
Pilonidal sinus defect closure, reconstruction methodsPilonidal sinus defect closure, reconstruction methods
Pilonidal sinus defect closure, reconstruction methods
 
Challenges Of Project Management
Challenges Of Project ManagementChallenges Of Project Management
Challenges Of Project Management
 
GöKçE Slayt
GöKçE SlaytGöKçE Slayt
GöKçE Slayt
 
GöKçE Slayt
GöKçE SlaytGöKçE Slayt
GöKçE Slayt
 
桂林98
桂林98桂林98
桂林98
 
Conjunto Residencial Salamar1
Conjunto Residencial Salamar1Conjunto Residencial Salamar1
Conjunto Residencial Salamar1
 

Similar to De so 2

C language UPTU Unit3 Slides
C language UPTU Unit3 SlidesC language UPTU Unit3 Slides
C language UPTU Unit3 SlidesRakesh Roshan
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selectionHamad Odhabi
 
4. programing 101
4. programing 1014. programing 101
4. programing 101IEEE MIU SB
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanationsrinath v
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinarurumedina
 
Logical Expressions in C/C++. Mistakes Made by Professionals
Logical Expressions in C/C++. Mistakes Made by ProfessionalsLogical Expressions in C/C++. Mistakes Made by Professionals
Logical Expressions in C/C++. Mistakes Made by ProfessionalsPVS-Studio
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
 
Chapter 3 branching v4
Chapter 3 branching v4Chapter 3 branching v4
Chapter 3 branching v4Sunarto Quek
 
Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxEyasu46
 
Ref Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxRef Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxBilalAhmad735613
 
OXUS20 JAVA Programming Questions and Answers PART I
OXUS20 JAVA Programming Questions and Answers PART IOXUS20 JAVA Programming Questions and Answers PART I
OXUS20 JAVA Programming Questions and Answers PART IAbdul Rahman Sherzad
 
Control structure of c
Control structure of cControl structure of c
Control structure of cKomal Kotak
 

Similar to De so 2 (20)

C language UPTU Unit3 Slides
C language UPTU Unit3 SlidesC language UPTU Unit3 Slides
C language UPTU Unit3 Slides
 
VBscript
VBscriptVBscript
VBscript
 
C programming session3
C programming  session3C programming  session3
C programming session3
 
C programming session3
C programming  session3C programming  session3
C programming session3
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selection
 
4. programing 101
4. programing 1014. programing 101
4. programing 101
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medina
 
Logical Expressions in C/C++. Mistakes Made by Professionals
Logical Expressions in C/C++. Mistakes Made by ProfessionalsLogical Expressions in C/C++. Mistakes Made by Professionals
Logical Expressions in C/C++. Mistakes Made by Professionals
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Control All
Control AllControl All
Control All
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
Overview of C Language
Overview of C LanguageOverview of C Language
Overview of C Language
 
Chapter 3 branching v4
Chapter 3 branching v4Chapter 3 branching v4
Chapter 3 branching v4
 
Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptx
 
Ref Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxRef Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptx
 
OXUS20 JAVA Programming Questions and Answers PART I
OXUS20 JAVA Programming Questions and Answers PART IOXUS20 JAVA Programming Questions and Answers PART I
OXUS20 JAVA Programming Questions and Answers PART I
 
Control structure of c
Control structure of cControl structure of c
Control structure of c
 

De so 2

  • 1. CÂU TRẢ LỜI MÀU ĐỎ CÓ KHẢ NĂNG PHẦN LỚN LÀ ĐÚNG. HY VỌNG LÀ ĐÚNG HẾT THẬT ^^ 1 Keywords can be used as variables names. False True 2 The keywords in C are case-sensitive. False True 3 The relational operators > >= < <= have the same precedence. False True 4 The Repeat?Until loop exits when the condition evaluates to _________. False True 5 We cannot use nested if statements in a Pseudocode. False True 6 "default" statement in C's switch case is similar to the _______________ the statement in a pseudocode. END END CASE OTHERWISE 7 What will be the output of the following code?
  • 2. main() { int a=13, b=20; if( i=15 || b > 30) printf("Hello"); else printf("Sorry"); } Hello Sorry Syntax Error 8 main() { int i=5; while(i=2) printf("Global Corporation"); } What will be the output? Global Global Corporation Runtime Error Syntax Error 9 main() { int s1=2; while(s1==2) { x=x-1; printf("%d",x); } } What will be the output: 1 2 Runtime Error 10 main() { int i=1; while(i<=5);
  • 3. { printf("%d",i); i++; } } what will be the output? Logical Error Runtime Error Syntax Error 11 main() { int s1=1; for( ;s1; ) printf("A"); } What will be the output? A Runtime Error Syntax Error 12 Which of the following is/are the tool/s for debugging? Break point Check point Error Tracing Simulator Trace routines 13 The keyword/s used to take user input in a Pseudocode is/are Accept Input Prompt Read Take 14 The Logical operators are: And False Not Or
  • 4. True 15 Identify the methods used for debugging. Dry Run Independent Inspection Structured walk through Testing Tracing 16 Which of the following are the delimiters used in programming languages? () < > [] {} Tracing 17 Which of the following will generate a Logical error? avg=a+b c (c=0) IF (A< >0 AND A< >1) Then??. Infinite loop Read Abc.doc (abc.doc does not exist) Tracing 18 Which of the following statements are true? The # symbol may not be used as the first character of a variable The $ symbol may not be used as the first character of a variable The % is used to calculate a percentage thus: 10 % 20=50 The / operator is used to divide one value by another 19 Which of the following statements with respect to Program Bug are True? A bug is a semantic error in a program. The program with a bug will compile and run but produces incorrect or unexpected results. The program with a bug will fail to compile. To find a bug, you can use the method of tracing through the program by hand, step-by-step. You can use a special program called a debugger, which will help you find bugs. 20
  • 5. A flowchart can have more than one START & one STOP. False True 21 When the loop encounters a break statement, it immediately exits the program. False True 22 The subprogram in a pseudocode can be further divided into smaller programs. False True