GNIDOC ROUND 1

Quiz
•
Computers
•
University
•
Hard
MEGHA HARTHANA S
Used 7+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
#include<stdio.h>
int main()
{
int i;
i = (printf("Welcome"), printf(" To Progeni "));
printf("%d", i);
return 0;
}
a) Welcome To Progeni , error
b) compilation error
c) Welcome To Progeni 12
d) Welcome To Progeni 19
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of below program?
int main()
{
if("0")
{
cout<<"EPUDRAA";
}
else
{
cout<<" THE BOYS";
}
return 0;
}
a)EPUDRAA
b) THE BOYS
c) both a) and b)
d) none
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of p in the following C++ code snippet?
#include <iostream>
using namespace std;
int main()
{
int p;
bool a = true;
bool b = false;
int x = 8;
int y = 2;
p = ((x | y) + (a + b));
cout << p;
return 0;
}
10
11
8
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
#include <stdio.h>
int main() {
printf("%d %d", (032), (27));
return 0;
}
032 27
32 27
26 27
026 27
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
By assuming size of int = 8 bytes , char = 1 byte for 64-bit compiler, find the output.
#include <iostream>
#include<string.h>
using namespace std;
int main() {
int *pr[10];
const char *ptr="varta maamey durrr";
char p[]="Eppudra";
cout<<sizeof(pr)<<" ";
cout<<sizeof(ptr)<<" ";
cout<<sizeof(p);
}
a) 80 12 7
b) 10 8 7
c) 80 8 8
d) 80 4 8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
#include <stdio.h>
int main() {
bool ok = false;
printf(ok? "YES" : "NO");
return 0;
}
A)Yes
B)No
C)Compilation Error
D)None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the search complexity in direct addressing?
a) O(n)
b) O(logn)
c) O(nlogn)
d) O(1)
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
ԹԳՀԳ 10- րդ դաս C++

Quiz
•
10th Grade - University
25 questions
C- Geniusia

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
30 questions
C Language Quiz

Quiz
•
University
20 questions
C PROGRAMMING LANGUAGE

Quiz
•
University
20 questions
ISTE TECHNICAL

Quiz
•
University
20 questions
Functions in C

Quiz
•
University
30 questions
Repaso C Cs50

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University