day5

Quiz
•
Professional Development
•
Professional Development
•
Hard
Samba Siva
Used 15+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the result of 'num' variable after execution of the following statements?
int num = 58;
num % = 11;
3
5
8
11
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
char arr[7]="Network";
printf("%s", arr);
return 0;
}
Network
N
Garbage Value
Compilation error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
float a=0.7;
if(a<0.7)
{
printf("C");
}
else
{
printf("C++");
}
}
C
C++
Compilation Error
None of the these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int a = 1, b=2, c=3;
char d = 0;
if(a,b,c,d)
{
printf("EXAM");
}
}
No Output and No Error
EXAM
Run time error
Compile time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output of the following c program?
#include<stdio.h>
int main()
{
int max-val=100;
int min-val=10;
int avg-val;
avg-val = max-val + min-val / 2;
printf("%d",avg-val);
}
55
105
60
Compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Input/output function prototypes and macros are defined in which header file?
conio.h
stdlib.h
stdio.h
dos.h
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The "\n" character does which of the following operations?
Double line spacing
Character deletion
Character backspace
Places cursor on the next line
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
UC_TM03_Arrays_Functions

Quiz
•
University - Professi...
20 questions
BSAIT 1-2 QUIZ

Quiz
•
Professional Development
20 questions
Prelims-Aptitude&C

Quiz
•
Professional Development
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
23 questions
UNIT-9

Quiz
•
Professional Development
20 questions
flutter g28

Quiz
•
Professional Development
22 questions
Punctuation & Capitalization

Quiz
•
Professional Development
20 questions
Python Code

Quiz
•
8th Grade - Professio...
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade