BS TEST2

Quiz
•
Computers
•
University
•
Hard
Amburu Kumar
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine the output of the C code mentioned below:
#include <stdio.h>
int main()
{
float q = ‘a’;
printf(“%f”, q);
return 0;
}
run time error
a
97.000000
d. a.0000000
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is NOT a relational or logical operator
=
||
==
!=
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include<stdio.h>
int main()
{
int p = 1, q = 2, r = 3, s = 4, x;
e = r + s = q * p;
printf(“%d, %d\n”, x, s);
}
Syntax error
5, 2
7, 2
7, 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We cannot use the keyword ‘break’ simply within _________
while
for
if-else
do-while
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct format of declaring a function is:
type_of_return name_of_function (argument type);
type_of_return name_of_function (argument type){}
type_of_return (argument type) name_of_function;
all of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Comment on the C statement given below:
int (*p)[5];
A ragged array
An array “p” of pointers
A pointer “p” to an array
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the C code mentioned below would be:
#include <stdio.h>
struct employee
{
int id;
char rank[5];
}
void main()
{
struct employee e;
s.no = 30;
printf(“howdy”);
}
hello
Compile-time error
5, 30
Varies
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Minggu V - PKS 2 - Pemrograman C++

Quiz
•
University
18 questions
C Language 101

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
20 questions
Operator in C

Quiz
•
University
25 questions
TECH_IQ_HUNT ROUND

Quiz
•
University
20 questions
BUG BLITZ

Quiz
•
University
15 questions
Java

Quiz
•
University
23 questions
Beginning C Programming

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